Problem
client.query(sql, params) never reaches the server with its parameters in Perry's pg binding. The whole parameterized-query surface is dead.
Reproducer
Both transports (the legacy sqlx-based path, and the unmerged turnloop-based path) answer:
bind message supplies 0 parameters, but prepared statement "sqlx_s_8" requires 1
(on the turnloop-based path, the same error names an empty prepared-statement id: ...but prepared statement "" requires 1.) The parameters passed to query() never reach the wire-level Bind message on either transport.
Why it matters
Nothing in the repository tested this before Perry's P7 lane found it — there is no test-files/ fixture mentioning pg at all. Every Perry program that calls client.query(sql, [params]) — the standard, documented way to run a parameterized query against PostgreSQL — has been silently broken.
What would fix it
Trace where query()'s parameter array is dropped before the Bind message is constructed and wire it through. This is pre-existing on Perry's base commit and is not something either transport introduced.
Problem
client.query(sql, params)never reaches the server with its parameters in Perry'spgbinding. The whole parameterized-query surface is dead.Reproducer
Both transports (the legacy
sqlx-based path, and the unmerged turnloop-based path) answer:(on the turnloop-based path, the same error names an empty prepared-statement id:
...but prepared statement "" requires 1.) The parameters passed toquery()never reach the wire-levelBindmessage on either transport.Why it matters
Nothing in the repository tested this before Perry's P7 lane found it — there is no
test-files/fixture mentioningpgat all. Every Perry program that callsclient.query(sql, [params])— the standard, documented way to run a parameterized query against PostgreSQL — has been silently broken.What would fix it
Trace where
query()'s parameter array is dropped before theBindmessage is constructed and wire it through. This is pre-existing on Perry's base commit and is not something either transport introduced.