From 8152bc40d5c8a2df5377f08a3f2f93177d7805a4 Mon Sep 17 00:00:00 2001 From: Nikita Vasilev Date: Sun, 20 Jan 2019 12:24:31 +0300 Subject: [PATCH] fix --- dbms/src/Parsers/ASTCreateQuery.h | 2 +- dbms/src/Parsers/ParserCreateQuery.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/dbms/src/Parsers/ASTCreateQuery.h b/dbms/src/Parsers/ASTCreateQuery.h index 4f5e3faca50..59e3c7abe35 100644 --- a/dbms/src/Parsers/ASTCreateQuery.h +++ b/dbms/src/Parsers/ASTCreateQuery.h @@ -123,7 +123,7 @@ public: list.children.push_back(index); if (!list.children.empty()) - list.formatImpl(s, state, frame; + list.formatImpl(s, state, frame); } }; diff --git a/dbms/src/Parsers/ParserCreateQuery.cpp b/dbms/src/Parsers/ParserCreateQuery.cpp index cdbba778471..8867d1714e4 100644 --- a/dbms/src/Parsers/ParserCreateQuery.cpp +++ b/dbms/src/Parsers/ParserCreateQuery.cpp @@ -94,7 +94,6 @@ bool ParserColumnDeclarationList::parseImpl(Pos & pos, ASTPtr & node, Expected & bool ParserIndexDeclaration::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) { - ParserKeyword s_by("BY"); ParserKeyword s_type("TYPE"); ParserKeyword s_granularity("GRANULARITY"); @@ -111,9 +110,6 @@ bool ParserIndexDeclaration::parseImpl(Pos & pos, ASTPtr & node, Expected & expe if (!name_p.parse(pos, name, expected)) return false; - if (!s_by.ignore(pos, expected)) - return false; - if (!expression_p.parse(pos, expr, expected)) return false;