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

Fixed CORE-4798: Regression: MIN/MAX with a join ignores possible index navigation.

This commit is contained in:
dimitr 2015-05-31 19:23:09 +00:00
parent f58768ab3d
commit 70f16f1c9c

View File

@ -1506,6 +1506,8 @@ RecordSource* AggregateSourceNode::generate(thread_db* tdbb, OptimizerBlk* opt,
aggregate->descending.add(aggNode->aggInfo.blr == blr_agg_max);
// 10-Aug-2004. Nickolay Samofatov - Unneeded nulls seem to be skipped somehow.
aggregate->nullOrder.add(rse_nulls_default);
rse->flags |= RseNode::FLAG_OPT_FIRST_ROWS;
}
RecordSource* const nextRsb = OPT_compile(tdbb, csb, rse, &deliverStack);