From 396419d70b7517f5d7f9cae0a1c83f3abcea6895 Mon Sep 17 00:00:00 2001 From: Arpan Mishra Date: Sat, 23 Dec 2023 23:39:34 +0530 Subject: [PATCH] Update samples/snippets/src/main/java/com/example/spanner/v2/CreateDatabaseWithDefaultLeaderSample.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Knut Olav Løite --- .../spanner/v2/CreateDatabaseWithDefaultLeaderSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/src/main/java/com/example/spanner/v2/CreateDatabaseWithDefaultLeaderSample.java b/samples/snippets/src/main/java/com/example/spanner/v2/CreateDatabaseWithDefaultLeaderSample.java index 89e9fc7e8ed..3dcacbfd474 100644 --- a/samples/snippets/src/main/java/com/example/spanner/v2/CreateDatabaseWithDefaultLeaderSample.java +++ b/samples/snippets/src/main/java/com/example/spanner/v2/CreateDatabaseWithDefaultLeaderSample.java @@ -47,7 +47,7 @@ static void createDatabaseWithDefaultLeader(String instanceName, String database databaseAdminClient.createDatabaseAsync( CreateDatabaseRequest.newBuilder() .setParent(instanceName) - .setCreateStatement("CREATE DATABASE " + "`" + databaseId + "`") + .setCreateStatement("CREATE DATABASE `" + databaseId + "`") .addAllExtraStatements( ImmutableList.of("CREATE TABLE Singers (" + " SingerId INT64 NOT NULL,"