Commit b563047
fix: use fetchone() instead of rowcount and quote job metadata columns
Three additional backend-agnostic fixes:
- table.py: is_declared uses fetchone() instead of rowcount — DBAPI2
does not guarantee rowcount for non-DML statements, breaking on
some PostgreSQL drivers.
- schemas.py: Schema.exists uses fetchone() instead of rowcount —
same DBAPI2 portability issue.
- autopopulate.py: _update_job_metadata uses adapter.quote_identifier()
for _job_start_time, _job_duration, _job_version columns — these
were hardcoded with MySQL backticks, broken on PostgreSQL.
Co-Authored-By: Kushal Bakshi <kushal.bakshi@datajoint.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4a9bc3d commit b563047
3 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| 779 | + | |
779 | 780 | | |
780 | 781 | | |
781 | | - | |
| 782 | + | |
782 | 783 | | |
783 | 784 | | |
784 | 785 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
| 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