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

Fixed CORE-1130.

This commit is contained in:
dimitr 2007-02-15 07:20:59 +00:00
parent 44f96eb3b6
commit 02035b1860

View File

@ -522,8 +522,6 @@ RecordSource* OPT_compile(thread_db* tdbb,
}
else {
rsb = OPT_compile(tdbb, csb, (RecordSelExpr*) node, parent_stack);
if (rse->rse_jointype == blr_left)
find_used_streams(rsb, outer_streams);
}
break;
}
@ -543,6 +541,9 @@ RecordSource* OPT_compile(thread_db* tdbb,
(rse->rse_jointype == blr_left && (ptr - rse->rse_relation) == 0))
{
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_inactive(opt, river);