fix parser

This commit is contained in:
Guillaume Tassery 2020-05-11 13:53:10 +07:00
parent f67cd0d3f2
commit 875a8ab2c3

View File

@ -241,9 +241,7 @@ bool ParserSelectQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
if (top_length && limit_length)
throw Exception("Can not use TOP and LIMIT together", ErrorCodes::TOP_AND_LIMIT_TOGETHER);
}
if (s_offset.ignore(pos, expected))
else if (s_offset.ignore(pos, expected))
{
if (!exp_elem.parse(pos, limit_offset, expected))
return false;