Skip to content

Commit a2b5f0e

Browse files
authored
Update PgLastStatementSample.java
1 parent 0a224a9 commit a2b5f0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

samples/snippets/src/main/java/com/example/spanner/PgLastStatementSample.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)