From 2c72cdef4434121880db81e20a07a324740f9213 Mon Sep 17 00:00:00 2001 From: hexiaoting Date: Wed, 14 Oct 2020 15:05:02 +0800 Subject: [PATCH] Fix error for offset_fetch without only/with ties --- src/Parsers/ParserSelectQuery.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Parsers/ParserSelectQuery.cpp b/src/Parsers/ParserSelectQuery.cpp index 8f0c70308ff..91c48fc362d 100644 --- a/src/Parsers/ParserSelectQuery.cpp +++ b/src/Parsers/ParserSelectQuery.cpp @@ -305,6 +305,10 @@ bool ParserSelectQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) { select_query->limit_with_ties = false; } + else + { + return false; + } } }