diff --git a/src/jrd/optimizer/Optimizer.cpp b/src/jrd/optimizer/Optimizer.cpp index 082d31962e..d76b295e52 100644 --- a/src/jrd/optimizer/Optimizer.cpp +++ b/src/jrd/optimizer/Optimizer.cpp @@ -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))