mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 15:23:03 +01:00
This should fix #8113: UNION ALL optimization with constant false condition
This commit is contained in:
parent
9625bd37f2
commit
70a60ba816
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user