Update ParserDropQuery.cpp

This commit is contained in:
Yarik Briukhovetskyi 2024-05-01 19:03:28 +02:00 committed by GitHub
parent 1c361d0daa
commit e52508b912
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ bool parseDropQuery(IParser::Pos & pos, ASTPtr & node, Expected & expected, cons
else if (s_all.ignore(pos, expected) && s_tables.ignore(pos, expected) && kind == ASTDropQuery::Kind::Truncate)
{
has_all_tables = true;
if (s_from.ignore(pos, expected))
if (!s_from.ignore(pos, expected))
return false;
if (s_if_exists.ignore(pos, expected))