Skip to content

Commit 14a960c

Browse files
author
TinderBox
authored
Update ClickhouseCLIClientTransport.php
fixed unknown issue with max_query_size
1 parent 84e641b commit 14a960c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Transport/ClickhouseCLIClientTransport.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ protected function buildCommandForRead(Server $server, string $query, $tables =
236236
"--host='{$server->getHost()}'",
237237
"--port='{$server->getPort()}'",
238238
"--database='{$server->getDatabase()}'",
239-
"--max_query_size=".strlen($query),
239+
"--max_query_size=".(strlen($query) + 1024),
240240
];
241241

242242
if ($tables instanceof TempTable || !empty($tables)) {

0 commit comments

Comments
 (0)