From 540a99c93a69c926d22a45dc72617ff8c66a82e1 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Wed, 28 Nov 2018 19:52:46 +0300 Subject: [PATCH] Fix engine parsing in create query. --- dbms/src/Parsers/ParserCreateQuery.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbms/src/Parsers/ParserCreateQuery.cpp b/dbms/src/Parsers/ParserCreateQuery.cpp index 9b2a2fc931c..fb83572b18c 100644 --- a/dbms/src/Parsers/ParserCreateQuery.cpp +++ b/dbms/src/Parsers/ParserCreateQuery.cpp @@ -287,7 +287,8 @@ bool ParserCreateQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected) } /// Optional - ENGINE can be specified. - storage_p.parse(pos, storage, expected); + if (!storage) + storage_p.parse(pos, storage, expected); } } }