Skip to content

Commit efc8d50

Browse files
committed
test: test mutations with default schema name
1 parent 1234447 commit efc8d50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITWriteTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ private Timestamp write(Mutation m) {
211211
}
212212

213213
private Mutation.WriteBuilder baseInsert() {
214-
return Mutation.newInsertOrUpdateBuilder("T").set("K").to(lastKey = uniqueString());
214+
String table = dialect.dialect == Dialect.POSTGRESQL ? "public.T" : "T";
215+
return Mutation.newInsertOrUpdateBuilder(table).set("K").to(lastKey = uniqueString());
215216
}
216217

217218
private Struct readLastRow(String... columns) {

0 commit comments

Comments
 (0)