clickhouse: fixed parsing lambda expressions [#CONV-7444].

This commit is contained in:
Michael Kolupaev 2013-05-08 10:33:37 +00:00
parent 755031efc6
commit 4a19d688dd

View File

@ -245,7 +245,7 @@ bool ParserLambdaExpression::parseImpl(Pos & pos, Pos end, ASTPtr & node, String
ASTExpressionList * outer_arguments = new ASTExpressionList;
lambda->arguments = outer_arguments;
lambda->children.push_back(outer_arguments);
lambda->children.push_back(lambda->arguments);
ASTFunction * tuple = new ASTFunction;
outer_arguments->children.push_back(tuple);
@ -345,7 +345,7 @@ ParserAccessExpression::ParserAccessExpression()
ParserExpressionWithOptionalAlias::ParserExpressionWithOptionalAlias()
: impl(new ParserWithOptionalAlias(new ParserTernaryOperatorExpression))
: impl(new ParserWithOptionalAlias(new ParserLambdaExpression))
{
}