Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2a93787

Browse filesBrowse files
author
Jon Wayne Parrott
authored
Pass multi_use=True to spanner read-only transaction (GoogleCloudPlatform#1063)
Change-Id: Ied9d9f519edd572d79dc95d2812c1b98f5a92794
1 parent 8f05fee commit 2a93787
Copy full SHA for 2a93787

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎spanner/cloud-client/snippets.py

Copy file name to clipboardExpand all lines: spanner/cloud-client/snippets.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def read_only_transaction(instance_id, database_id):
378378
instance = spanner_client.instance(instance_id)
379379
database = instance.database(database_id)
380380

381-
with database.snapshot() as snapshot:
381+
with database.snapshot(mutli_use=True) as snapshot:
382382
# Read using SQL.
383383
results = snapshot.execute_sql(
384384
'SELECT SingerId, AlbumId, AlbumTitle FROM Albums')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.