Merge pull request #7760 from amosbird/clientfixexit

Fix multi query exit for clickhouse-client
This commit is contained in:
alexey-milovidov 2019-11-14 12:50:31 +03:00 committed by GitHub
commit ed5e4cd4b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;