checkStackSize moved to the top of DNF::distributed in ORs in JOIN

This commit is contained in:
Ilya Golshtein 2021-09-20 14:36:37 +03:00
parent 6daef66364
commit aa4751a632

View File

@ -555,6 +555,8 @@ class DNF
ASTPtr distribute(ASTPtr node)
{
checkStackSize();
const auto * function = node->as<ASTFunction>();
if (function && function->children.size() == 1)
@ -628,7 +630,6 @@ class DNF
makeASTFunction("or", lst) :
lst[0];
checkStackSize();
node_added = true;
return ret;