File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
samples/snippets/src/main/java/com/example/spanner Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ static void insertAndUpdateUsingLastStatement() {
4242 }
4343 }
4444
45- // [START spanner_last_statement ]
45+ // [START pg_spanner_last_statement ]
4646 static void insertAndUpdateUsingLastStatement (DatabaseClient client ) {
4747 client
4848 .readWriteTransaction ()
@@ -57,13 +57,13 @@ static void insertAndUpdateUsingLastStatement(DatabaseClient client) {
5757 // Pass in the `lastStatement` option to the last DML statement of the transaction.
5858 transaction .executeUpdate (
5959 Statement .of (
60- "UPDATE Singers SET LastName = 'Doe' WHERE SingerId = 54213 \n " ),
60+ "UPDATE Singers SET LastName = 'Doe' WHERE SingerId = 54214 \n " ),
6161 Options .lastStatement ());
6262 System .out .println ("Singer last name updated." );
6363
6464 return null ;
6565 });
6666 }
67- // [END spanner_last_statement ]
67+ // [END pg_spanner_last_statement ]
6868
69- }
69+ }
You can’t perform that action at this time.
0 commit comments