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

Backported fix for CORE-1130.

This commit is contained in:
dimitr 2007-02-21 12:41:04 +00:00
parent f8162a13e2
commit 5abc11d3da

View File

@ -518,8 +518,6 @@ RecordSource* OPT_compile(thread_db* tdbb,
} }
else { else {
rsb = OPT_compile(tdbb, csb, (RecordSelExpr*) node, parent_stack); rsb = OPT_compile(tdbb, csb, (RecordSelExpr*) node, parent_stack);
if (rse->rse_jointype == blr_left)
find_used_streams(rsb, outer_streams);
} }
break; break;
} }
@ -539,6 +537,9 @@ RecordSource* OPT_compile(thread_db* tdbb,
(rse->rse_jointype == blr_left && (ptr - rse->rse_relation) == 0)) (rse->rse_jointype == blr_left && (ptr - rse->rse_relation) == 0))
{ {
find_used_streams(rsb, sub_streams); find_used_streams(rsb, sub_streams);
// Save also the outer streams
if (rse->rse_jointype == blr_left)
find_used_streams(rsb, outer_streams);
} }
set_made_river(opt, river); set_made_river(opt, river);
set_inactive(opt, river); set_inactive(opt, river);