8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +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;
if (isInnerJoin())
{
for (auto iter = getBaseConjuncts(); iter.hasData(); ++iter)
for (auto iter = getConjuncts(); iter.hasData(); ++iter)
{
if (!(iter & CONJUNCT_USED) &&
iter->computable(csb, INVALID_STREAM, false))