Commit fda5119
revert: keep rowcount for existence checks (works on pymysql+psycopg2)
Both pymysql and psycopg2 correctly implement cursor.rowcount for
SELECT statements. The fetchone() change was defensive for
hypothetical future drivers but triggers an unnecessary row fetch.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 19f3e8b commit fda5119
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | | - | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
0 commit comments