mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 05:23:03 +01:00
Fixed CORE-4798: Regression: MIN/MAX with a join ignores possible index navigation.
This commit is contained in:
parent
f58768ab3d
commit
70f16f1c9c
@ -1506,6 +1506,8 @@ RecordSource* AggregateSourceNode::generate(thread_db* tdbb, OptimizerBlk* opt,
|
|||||||
aggregate->descending.add(aggNode->aggInfo.blr == blr_agg_max);
|
aggregate->descending.add(aggNode->aggInfo.blr == blr_agg_max);
|
||||||
// 10-Aug-2004. Nickolay Samofatov - Unneeded nulls seem to be skipped somehow.
|
// 10-Aug-2004. Nickolay Samofatov - Unneeded nulls seem to be skipped somehow.
|
||||||
aggregate->nullOrder.add(rse_nulls_default);
|
aggregate->nullOrder.add(rse_nulls_default);
|
||||||
|
|
||||||
|
rse->flags |= RseNode::FLAG_OPT_FIRST_ROWS;
|
||||||
}
|
}
|
||||||
|
|
||||||
RecordSource* const nextRsb = OPT_compile(tdbb, csb, rse, &deliverStack);
|
RecordSource* const nextRsb = OPT_compile(tdbb, csb, rse, &deliverStack);
|
||||||
|
Loading…
Reference in New Issue
Block a user