dbms: fixed error [#METR-10945].

This commit is contained in:
Alexey Milovidov 2014-05-12 21:27:48 +04:00
parent 9e1410931e
commit 2326d31f62

View File

@ -368,6 +368,20 @@ bool ParserCreateQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, const char
ws.ignore(pos, end); ws.ignore(pos, end);
} }
/// Опционально - может быть указан список столбцов. Он должен полностью соответствовать SELECT-у.
if (s_lparen.ignore(pos, end, expected))
{
ws.ignore(pos, end);
if (!columns_p.parse(pos, end, columns, expected))
return false;
ws.ignore(pos, end);
if (!s_rparen.ignore(pos, end, expected))
return false;
}
/// Опционально - может быть указана внутренняя ENGINE для MATERIALIZED VIEW /// Опционально - может быть указана внутренняя ENGINE для MATERIALIZED VIEW
engine_p.parse(pos, end, inner_storage, expected); engine_p.parse(pos, end, inner_storage, expected);