Add query parameter substitution

This commit is contained in:
Nikolay Degterinsky 2022-05-12 10:07:58 +00:00
parent dadf94d62a
commit ecfed4aaef

View File

@ -1638,6 +1638,7 @@ bool ParserExpression2::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
ParserLiteral literal_parser;
ParserTupleOfLiterals tuple_literal_parser;
ParserArrayOfLiterals array_literal_parser;
ParserSubstitution substitution_parser;
// Recursion
ParserQualifiedAsterisk qualified_asterisk_parser;
@ -1710,7 +1711,8 @@ bool ParserExpression2::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
literal_parser.parse(pos, tmp, expected) ||
asterisk_parser.parse(pos, tmp, expected) ||
qualified_asterisk_parser.parse(pos, tmp, expected) ||
columns_matcher_parser.parse(pos, tmp, expected))
columns_matcher_parser.parse(pos, tmp, expected) ||
substitution_parser.parse(pos, tmp, expected))
{
storage.back()->pushOperand(std::move(tmp));
}