8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

This should fix #8113: UNION ALL optimization with constant false condition

This commit is contained in:
Dmitry Yemanov 2024-11-15 12:44:16 +03:00
parent 9625bd37f2
commit 70a60ba816

View File

@ -798,7 +798,7 @@ RecordSource* Optimizer::compile(BoolExprNodeStack* parentStack)
BoolExprNode* invariantBoolean = nullptr; BoolExprNode* invariantBoolean = nullptr;
if (isInnerJoin()) if (isInnerJoin())
{ {
for (auto iter = getBaseConjuncts(); iter.hasData(); ++iter) for (auto iter = getConjuncts(); iter.hasData(); ++iter)
{ {
if (!(iter & CONJUNCT_USED) && if (!(iter & CONJUNCT_USED) &&
iter->computable(csb, INVALID_STREAM, false)) iter->computable(csb, INVALID_STREAM, false))