mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
client: do not try to fuzz USE queries
This commit is contained in:
parent
a419fe6633
commit
4d5ca0f409
@ -711,6 +711,13 @@ bool Client::processWithFuzzing(const String & full_query)
|
||||
throw;
|
||||
}
|
||||
|
||||
// `USE db` should not be executed
|
||||
// since this will break every query after `DROP db`
|
||||
if (orig_ast->as<ASTUseQuery>())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!orig_ast)
|
||||
{
|
||||
// Can't continue after a parsing error
|
||||
|
Loading…
Reference in New Issue
Block a user