Fix engine parsing in create query.

This commit is contained in:
Nikolai Kochetov 2018-11-28 19:52:46 +03:00
parent f615b062d8
commit 540a99c93a

View File

@ -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);
}
}
}