Skip to content

Commit d183c5e

Browse files
committed
fix table name wrapping in insert statement
1 parent ca81ec7 commit d183c5e

File tree

1 file changed

+1
-1
lines changed
  • client-v2/src/main/java/com/clickhouse/client/api

1 file changed

+1
-1
lines changed

client-v2/src/main/java/com/clickhouse/client/api/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ public CompletableFuture<InsertResponse> insert(String tableName,
15341534

15351535
settings.setOption(ClientConfigProperties.INPUT_OUTPUT_FORMAT.getKey(), format.name());
15361536
final InsertSettings finalSettings = settings;
1537-
final String sqlStmt = "INSERT INTO \"" + tableName + "\" FORMAT " + format.name();
1537+
final String sqlStmt = "INSERT INTO " + tableName + " FORMAT " + format.name();
15381538
finalSettings.serverSetting(ClickHouseHttpProto.QPARAM_QUERY_STMT, sqlStmt);
15391539
responseSupplier = () -> {
15401540
// Selecting some node

0 commit comments

Comments
 (0)