1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Make semi-joins work with outer joins:

- evaluate_null_complemented_join_record() should perform FirstMatch checks.
This commit is contained in:
Sergey Petrunya
2011-06-22 15:22:27 +04:00
parent eea95a15d3
commit ed54ec7eb5
4 changed files with 37 additions and 0 deletions

View File

@@ -15220,6 +15220,15 @@ evaluate_null_complemented_join_record(JOIN *join, JOIN_TAB *join_tab)
else if (res == 1)
return NESTED_LOOP_OK;
}
else if (join_tab->do_firstmatch)
{
/*
We should return to the join_tab->do_firstmatch after we have
enumerated all the suffixes for current prefix row combination
*/
if (join_tab->do_firstmatch < join->return_tab)
join->return_tab= join_tab->do_firstmatch;
}
/*
Send the row complemented by nulls to be joined with the