mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #7760 from amosbird/clientfixexit
Fix multi query exit for clickhouse-client
This commit is contained in:
commit
ed5e4cd4b5
@ -757,6 +757,9 @@ private:
|
||||
|
||||
bool process(const String & text)
|
||||
{
|
||||
if (exit_strings.end() != exit_strings.find(trim(text, [](char c){ return isWhitespaceASCII(c) || c == ';'; })))
|
||||
return false;
|
||||
|
||||
const bool test_mode = config().has("testmode");
|
||||
if (config().has("multiquery"))
|
||||
{
|
||||
@ -851,9 +854,6 @@ private:
|
||||
|
||||
bool processSingleQuery(const String & line, ASTPtr parsed_query_ = nullptr)
|
||||
{
|
||||
if (exit_strings.end() != exit_strings.find(trim(line, [](char c){ return isWhitespaceASCII(c) || c == ';'; })))
|
||||
return false;
|
||||
|
||||
resetOutput();
|
||||
got_exception = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user