mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Add forgotten part of my recent commit for #5654
This commit is contained in:
parent
0d72b8097c
commit
2797cea142
@ -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<ComparativeBoolNode> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user