Remove an always-false condition from query parser

https://github.com/ClickHouse/ClickHouse/pull/19236#discussion_r567673775
This commit is contained in:
Alexander Kuzmenkov 2021-02-01 13:49:19 +03:00
parent 3c09bcc771
commit 7780c0b8e9

View File

@ -269,14 +269,6 @@ ASTPtr tryParseQuery(
// most of the checks.
if (insert && insert->data)
{
if (!parse_res)
{
// Generic parse error.
out_error_message = getSyntaxErrorMessage(query_begin, all_queries_end,
last_token, expected, hilite, query_description);
return nullptr;
}
return res;
}