Skip to content

Commit 3c8b1fc

Browse files
committed
fixed issue with sql injection
1 parent d882f39 commit 3c8b1fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jdbc-v2/src/main/java/com/clickhouse/jdbc/StatementImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public void cancel() throws SQLException {
334334
}
335335

336336
try (QueryResponse response = connection.getClient().query(String.format("KILL QUERY%sWHERE query_id = '%s'",
337-
connection.onCluster ? " ON CLUSTER '" + connection.cluster + "' " : " ",
337+
connection.onCluster ? " ON CLUSTER `" + connection.cluster + "` " : " ",
338338
lastQueryId), connection.getDefaultQuerySettings()).get()){
339339
LOG.debug("Query {} was killed by {}", lastQueryId, response.getQueryId());
340340
} catch (Exception e) {

0 commit comments

Comments
 (0)