Transaction not read only if BEGIN READ ONLY is executed on advanced protocol #87012
Labels
A-tools-psycopg
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
X-blathers-triaged
blathers was able to find an owner
Describe the problem
Issue found after fixing psycopg/psycopg#350. In order to execute the BEGIN to start a transaction, we used to use the libpq function
PQexec()
, but we had to switch to usingPQexecParams()
because of a bug in libpq 14.5.If a transaction is started using
PQexecParams("BEGIN READ ONLY", None)
, the transaction starts, but it won't be in read only mode.To Reproduce
Run crdb:
Run the following script using psycopg 3.1 or checking out master:
The script passes on CRDB 21.2.14. On 22.1.6, it fails with output:
Environment:
Epic CRDB-14049
Jira issue: CRDB-19095
The text was updated successfully, but these errors were encountered: