Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

olavloite
Copy link
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.

Fixes googleapis/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.

Fixes googleapis/python-spanner-sqlalchemy#493
@olavloite olavloite requested review from a team as code owners December 3, 2024 09:18
@product-auto-label product-auto-label bot 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 requested a review from bhatt4982 December 3, 2024 09:18
@olavloite olavloite enabled auto-merge (squash) December 4, 2024 11:30
@olavloite olavloite merged commit 5e8ca94 into main Dec 4, 2024
13 of 15 checks passed
@olavloite olavloite deleted the allow-set-read-only-to-same branch December 4, 2024 12:57
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.

Fixes googleapis/python-spanner-sqlalchemy#493
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. size: xs Pull request size is extra small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Read-only transaction support
3 participants