未验证 提交 ed5e4cd4 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #7760 from amosbird/clientfixexit

Fix multi query exit for clickhouse-client
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册