Catch TOO_DEEP_RECURSION for formatted query too

This commit is contained in:
Azat Khuzhin 2021-06-21 00:39:24 +03:00
parent bf482f75a7
commit fa29fe6ba9

View File

@ -1451,10 +1451,9 @@ private:
}
catch (Exception & e)
{
if (e.code() != ErrorCodes::SYNTAX_ERROR)
{
if (e.code() != ErrorCodes::SYNTAX_ERROR &&
e.code() != ErrorCodes::TOO_DEEP_RECURSION)
throw;
}
}
if (ast_2)