8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Add forgotten part of my recent commit for #5654

This commit is contained in:
Dmitry Yemanov 2024-11-16 21:24:42 +03:00
parent 0d72b8097c
commit 2797cea142

View File

@ -2066,7 +2066,7 @@ unsigned Optimizer::distributeEqualities(BoolExprNodeStack& orgStack, unsigned b
{ {
for (ValueExprNodeStack::iterator inner(outer); (++inner).hasData(); ) for (ValueExprNodeStack::iterator inner(outer); (++inner).hasData(); )
{ {
if (count < baseCount) if (count < MAX_CONJUNCTS_TO_INJECT)
{ {
AutoPtr<ComparativeBoolNode> cmpNode(FB_NEW_POOL(getPool()) AutoPtr<ComparativeBoolNode> cmpNode(FB_NEW_POOL(getPool())
ComparativeBoolNode(getPool(), blr_eql)); ComparativeBoolNode(getPool(), blr_eql));
@ -2128,7 +2128,7 @@ unsigned Optimizer::distributeEqualities(BoolExprNodeStack& orgStack, unsigned b
{ {
for (ValueExprNodeStack::iterator temp(*eq_class); temp.hasData(); ++temp) for (ValueExprNodeStack::iterator temp(*eq_class); temp.hasData(); ++temp)
{ {
if (!fieldEqual(node1, temp.object()) && count < baseCount) if (!fieldEqual(node1, temp.object()) && count < MAX_CONJUNCTS_TO_INJECT)
{ {
ValueExprNode* arg1; ValueExprNode* arg1;
ValueExprNode* arg2; ValueExprNode* arg2;