Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

fix: allow setting connection.read_only to same value - #1247

Merged
olavloite merged 2 commits into
mainfrom
allow-set-read-only-to-same
Dec 4, 2024
Merged

fix: allow setting connection.read_only to same value#1247
olavloite merged 2 commits into
mainfrom
allow-set-read-only-to-same

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

Setting the read_only value of a connection to the same value as the current value should be allowed during a transaction, as it does not change anything. SQLAlchemy regularly does this if engine options have been specified.

Fixesgoogleapis/python-spanner-sqlalchemy#493

Setting the read_only value of a connection to the same value as the
current value should be allowed during a transaction, as it does not
change anything. SQLAlchemy regularly does this if engine options have
been specified.
Fixesgoogleapis/python-spanner-sqlalchemy#493
@olavloite
olavloite requested review from a teamDecember 3, 2024 09:18
@product-auto-labelproduct-auto-labelBot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/python-spanner API. labels Dec 3, 2024
@olavloite
olavloite enabled auto-merge (squash) December 4, 2024 11:30
@olavloite
olavloite merged commit 5e8ca94 into mainDec 4, 2024
@olavloite
olavloite deleted the allow-set-read-only-to-same branch December 4, 2024 12:57
@release-pleaserelease-pleaseBot mentioned this pull request Dec 4, 2024
olavloite added a commit that referenced this pull request Dec 4, 2024
Setting the read_only value of a connection to the same value as the
current value should be allowed during a transaction, as it does not
change anything. SQLAlchemy regularly does this if engine options have
been specified.
Fixesgoogleapis/python-spanner-sqlalchemy#493
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spannerIssues related to the googleapis/python-spanner API.size: xsPull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read-only transaction support

3 participants

@olavloite@harshachinta@hengfengli