You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
When runing multiple inserts separated by semicolon, I get the error Cannot insert multiple commands into a prepared statement.
Line: /pg-native/index.js:173:26
I thought multiple statements were possible since v2 ...
The text was updated successfully, but these errors were encountered:
PostgreSQL allows for parameters only in commands with a single statement. Multi-statement commands (separated by semicolons) are not allowed to have parameters. This is a server limitation and not specific to this driver.
But I am not sending any parameters. I pass in an empty array.
This works: client.query(sql, onResult);
This does not work: client.query(sql, [], onResult);
The pure js client ('pg'), does no throw. So, it is inconsistent behaviour.
When runing multiple inserts separated by semicolon, I get the error Cannot insert multiple commands into a prepared statement.
Line: /pg-native/index.js:173:26
I thought multiple statements were possible since v2 ...
The text was updated successfully, but these errors were encountered: