Skip to content

Commit d814755

Browse files
committed
feat: support option for setting client-id
1 parent 556a2c5 commit d814755

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ConnectionImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ static UnitOfWorkType of(TransactionMode transactionMode) {
340340
if (clientIdString != null && !clientIdString.isEmpty()) {
341341
tempDbClient = spanner.getDatabaseClient(options.getDatabaseId(), clientIdString);
342342
}
343+
else {
344+
tempDbClient = spanner.getDatabaseClient(options.getDatabaseId());
345+
}
343346
} else {
344347
tempDbClient = spanner.getDatabaseClient(options.getDatabaseId());
345348
}

0 commit comments

Comments
 (0)