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:
parent
9625bd37f2
commit
70a60ba816
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user