From 152fccd2b403b63ab00e37b211c8dafaff878ea5 Mon Sep 17 00:00:00 2001 From: Jon Wayne Parrott Date: Tue, 8 Aug 2017 12:46:19 -0700 Subject: [PATCH] Pass multi_use=True to spanner read-only transaction Change-Id: Ied9d9f519edd572d79dc95d2812c1b98f5a92794 --- spanner/cloud-client/snippets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spanner/cloud-client/snippets.py b/spanner/cloud-client/snippets.py index 680eda7963e1..344abcb3229c 100644 --- a/spanner/cloud-client/snippets.py +++ b/spanner/cloud-client/snippets.py @@ -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')