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
pgwire: fix JDBC driver compatibility for procedures with COMMIT statements
Previously, when using the extended protocol
(Parse/Bind/Describe/Execute/Sync) to call a PL/pgSQL procedure
containing COMMIT statements, CockroachDB would send extra
RowDescription messages after the COMMIT, causing the JDBC driver to
throw NoSuchElementException due to unexpected message sequences.
This change fixes the message flow to match JDBC driver expectations
when procedures execute COMMIT statements internally. The fix ensures
that the proper sequence of PostgreSQL wire protocol messages is sent,
preventing the driver from entering an inconsistent state.
Fixes#158771
Release Notes (Bug Fix): Fixed compatibility issue with JDBC driver when
calling PL/pgSQL procedures containing COMMIT statements via prepared
statements. The driver would previously throw NoSuchElementException due
to unexpected PostgreSQL wire protocol message sequences.
0 commit comments