mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Client: Don't exit (only break) at first error in interactive mode when processing multiple queries in one command [#METR-19563].
This commit is contained in:
parent
ff56176f4a
commit
b1f551d5ba
@ -569,8 +569,16 @@ private:
|
||||
while (isWhitespace(*begin) || *begin == ';')
|
||||
++begin;
|
||||
|
||||
if (!processSingleQuery(query, ast) || got_exception)
|
||||
if (!processSingleQuery(query, ast))
|
||||
return false;
|
||||
|
||||
if (got_exception)
|
||||
{
|
||||
if (is_interactive)
|
||||
break;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
clickhouse-client --multiquery --query="SELECT 1; SELECT xyz; SELECT 2;" 2> /dev/null;
|
Loading…
Reference in New Issue
Block a user