We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37801b1 commit c689c2eCopy full SHA for c689c2e
1 file changed
packages/django-google-spanner/django_spanner/base.py
@@ -199,6 +199,10 @@ def is_usable(self):
199
200
return True
201
202
+ # The usual way to start a transaction is to turn autocommit off.
203
+ # Spanner DB API does not properly start a transaction when disabling
204
+ # autocommit. To avoid this buggy behavior and to actually enter a new
205
+ # transaction, an explicit SELECT 1 is required.
206
def _start_transaction_under_autocommit(self):
207
"""
208
Start a transaction explicitly in autocommit mode.
0 commit comments