add alias

This commit is contained in:
Alexander Tokmakov 2020-09-29 17:12:40 +03:00
parent 5d19ed04f6
commit 8692c10495

View File

@ -22,6 +22,7 @@ bool parseDropQuery(IParser::Pos & pos, ASTPtr & node, Expected & expected, bool
ParserKeyword s_if_exists("IF EXISTS");
ParserIdentifier name_p;
ParserKeyword s_no_delay("NO DELAY");
ParserKeyword s_sync("SYNC");
ASTPtr database;
ASTPtr table;
@ -79,7 +80,7 @@ bool parseDropQuery(IParser::Pos & pos, ASTPtr & node, Expected & expected, bool
return false;
}
if (s_no_delay.ignore(pos, expected))
if (s_no_delay.ignore(pos, expected) || s_sync.ignore(pos, expected))
no_delay = true;
}