We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fafe27 commit 6fcb5feCopy full SHA for 6fcb5fe
samples/snippets/src/main/java/com/example/spanner/LastStatementSample.java
@@ -57,7 +57,8 @@ static void insertAndUpdateUsingLastStatement(DatabaseClient client) {
57
// Pass in the `lastStatement` option to the last DML statement of the transaction.
58
transaction.executeUpdate(
59
Statement.of(
60
- "UPDATE Singers SET Singers.LastName = 'Doe' WHERE SingerId = 54213\n"), Options.lastStatement());
+ "UPDATE Singers SET Singers.LastName = 'Doe' WHERE SingerId = 54213\n"),
61
+ Options.lastStatement());
62
System.out.println("Singer last name updated.");
63
64
return null;
0 commit comments