dbms: fixed error with PREWHERE [#METR-9837].

This commit is contained in:
Alexey Milovidov 2014-02-01 01:27:00 +00:00
parent 82b98ffb6d
commit ab24d20f23

View File

@ -276,6 +276,8 @@ bool ParserSelectQuery::parseImpl(Pos & pos, Pos end, ASTPtr & node, String & ex
select_query->children.push_back(select_query->sample_size);
if (select_query->where_expression)
select_query->children.push_back(select_query->where_expression);
if (select_query->prewhere_expression)
select_query->children.push_back(select_query->prewhere_expression);
if (select_query->group_expression_list)
select_query->children.push_back(select_query->group_expression_list);
if (select_query->having_expression)