Use engine-neutral placeholders in the port script's Postgres statements

Two statements the port script runs against the Postgres store spelled
their placeholders as psycopg2's `%s`, which the native Rust driver does
not understand. `?` is what `LoggingTransaction` rewrites for whichever
driver is in use.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ULdieJyQoHNzeHq42H2M1p
This commit is contained in:
Erik JohnstonandClaude Fable 5.1 committed 2026-10-12 19:04:46 +00:00
1 parent 86d03361f2
commit f75c19a69a
1 file changed
+2 -2
+2 -2
View File
@@ -299,7 +299,7 @@ class Store(
table,
", ".join(k for k in headers),
"OVERRIDING SYSTEM VALUE" if override_system_value else "",
", ".join("%s" for _ in headers),
", ".join("?" for _ in headers),
)
try:
@@ -382,7 +382,7 @@ class Porter:
def delete_all(txn: LoggingTransaction) -> None:
txn.execute(
"DELETE FROM port_from_sqlite3 WHERE table_name = %s", (table,)
"DELETE FROM port_from_sqlite3 WHERE table_name = ?", (table,)
)
txn.execute("TRUNCATE %s CASCADE" % (table,))