From 2797cea1421e201dfac51c57fc533e6aff7481f1 Mon Sep 17 00:00:00 2001 From: Dmitry Yemanov Date: Sat, 16 Nov 2024 21:24:42 +0300 Subject: [PATCH] Add forgotten part of my recent commit for #5654 --- src/jrd/optimizer/Optimizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jrd/optimizer/Optimizer.cpp b/src/jrd/optimizer/Optimizer.cpp index 2932ebad96..9d74042351 100644 --- a/src/jrd/optimizer/Optimizer.cpp +++ b/src/jrd/optimizer/Optimizer.cpp @@ -2066,7 +2066,7 @@ unsigned Optimizer::distributeEqualities(BoolExprNodeStack& orgStack, unsigned b { for (ValueExprNodeStack::iterator inner(outer); (++inner).hasData(); ) { - if (count < baseCount) + if (count < MAX_CONJUNCTS_TO_INJECT) { AutoPtr cmpNode(FB_NEW_POOL(getPool()) ComparativeBoolNode(getPool(), blr_eql)); @@ -2128,7 +2128,7 @@ unsigned Optimizer::distributeEqualities(BoolExprNodeStack& orgStack, unsigned b { 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* arg2;