Skip to content

Commit 70a60ba

Browse files
committed
This should fix #8113: UNION ALL optimization with constant false condition
1 parent 9625bd3 commit 70a60ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jrd/optimizer/Optimizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ RecordSource* Optimizer::compile(BoolExprNodeStack* parentStack)
798798
BoolExprNode* invariantBoolean = nullptr;
799799
if (isInnerJoin())
800800
{
801-
for (auto iter = getBaseConjuncts(); iter.hasData(); ++iter)
801+
for (auto iter = getConjuncts(); iter.hasData(); ++iter)
802802
{
803803
if (!(iter & CONJUNCT_USED) &&
804804
iter->computable(csb, INVALID_STREAM, false))

0 commit comments

Comments
 (0)