Skip to content

Commit

Permalink
Pass multi_use=True to spanner read-only transaction (#1063)
Browse files Browse the repository at this point in the history
Change-Id: Ied9d9f519edd572d79dc95d2812c1b98f5a92794
  • Loading branch information
Jon Wayne Parrott authored Aug 8, 2017
1 parent 8f05fee commit 2a93787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spanner/cloud-client/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def read_only_transaction(instance_id, database_id):
instance = spanner_client.instance(instance_id)
database = instance.database(database_id)

with database.snapshot() as snapshot:
with database.snapshot(mutli_use=True) as snapshot:
# Read using SQL.
results = snapshot.execute_sql(
'SELECT SingerId, AlbumId, AlbumTitle FROM Albums')
Expand Down

0 comments on commit 2a93787

Please sign in to comment.