Skip to content

Report the parse error to pipelined queries that reused the failed statement - #3744

Open
nigrosimone wants to merge 1 commit into
brianc:masterfrom
nigrosimone:fix-named-statement-after-parse-error
Open

Report the parse error to pipelined queries that reused the failed statement#3744
nigrosimone wants to merge 1 commit into
brianc:masterfrom
nigrosimone:fix-named-statement-after-parse-error

Conversation

@nigrosimone

Copy link
Copy Markdown
Contributor

When a named statement fails to parse, pipelined queries already on the wire that skipped their own Parse for that name receive prepared statement "x" does not exist from the backend, an error about pg internals instead of the real one.

The client now marks those queries when the parse error arrives and hands them the original error, the same one they get without pipelining.

Regression test in pipelining-tests.js, it fails on master.

@nigrosimone
nigrosimone marked this pull request as ready for review August 12, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant