Fixed tests

This commit is contained in:
Maksim Kita 2022-04-21 14:20:10 +02:00
parent 01e09ba44e
commit be53daf405

View File

@ -593,6 +593,7 @@ namespace
/// First try to match with date extract operator EXTRACT(part FROM date)
/// Then with function extract(haystack, pattern)
IParser::Pos begin = pos;
IntervalKind interval_kind;
if (parseIntervalKind(pos, expected, interval_kind))
@ -607,10 +608,10 @@ namespace
node = makeASTFunction(interval_kind.toNameOfFunctionExtractTimePart(), expr);
return true;
}
return false;
}
pos = begin;
ASTPtr expr_list;
if (!ParserExpressionList(true /*allow_alias_without_as_keyword*/).parse(pos, expr_list, expected))
return false;