From 875a8ab2c31cf6e4bf3cd23d2db60e4d5ff99f5e Mon Sep 17 00:00:00 2001 From: Guillaume Tassery Date: Mon, 11 May 2020 13:53:10 +0700 Subject: [PATCH] fix parser --- src/Parsers/ParserSelectQuery.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Parsers/ParserSelectQuery.cpp b/src/Parsers/ParserSelectQuery.cpp index 02909314199..d2d7bbf9f21 100644 --- a/src/Parsers/ParserSelectQuery.cpp +++ b/src/Parsers/ParserSelectQuery.cpp @@ -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;