Update ParserInsertQuery.cpp

This commit is contained in:
Kruglov Pavel 2022-01-11 20:24:34 +03:00 committed by GitHub
parent 7999d90900
commit 186020d906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,11 +132,14 @@ bool ParserInsertQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
return false;
}
/// Read format name
if (!s_format.ignore(pos, expected) || !name_p.parse(pos, format, expected))
return false;
/// Read format name if any.
if (s_format.ignore(pos, expected))
{
if (!name_p.parse(pos, format, expected))
return false;
tryGetIdentifierNameInto(format, format_str);
tryGetIdentifierNameInto(format, format_str);
}
}
else if (s_values.ignore(pos, expected))
{