Skip to content

Commit e17466a

Browse files
committed
fixed executing sql via container command
1 parent 78adc74 commit e17466a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clickhouse-client/src/test/java/com/clickhouse/client/ClickHouseServerForTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public static boolean runQuery(String sql) {
375375
if (clickhouseContainer != null) {
376376
try {
377377
Container.ExecResult res = clickhouseContainer.execInContainer("clickhouse-client",
378-
"-u", "default", "--password", "\"" + getPassword() + "\"","\"" + sql + "\"");
378+
"-u", "default", "--password", getPassword(), "--query", sql);
379379
if (res.getExitCode() != 0) {
380380
LOGGER.error("query execution result: stderr={}, stdout={}", res.getStderr(), res.getStdout() );
381381
}

0 commit comments

Comments
 (0)