1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Make semi-joins work with outer joins part #2:

- Do make the DuplicateWeedout check for outer joins.
This commit is contained in:
Sergey Petrunya
2011-06-22 14:33:11 +04:00
parent 038be98979
commit eea95a15d3
4 changed files with 118 additions and 0 deletions

View File

@@ -15211,6 +15211,17 @@ evaluate_null_complemented_join_record(JOIN *join, JOIN_TAB *join_tab)
/*
The row complemented by nulls satisfies all conditions
attached to inner tables.
*/
if (join_tab->check_weed_out_table)
{
int res= do_sj_dups_weedout(join->thd, join_tab->check_weed_out_table);
if (res == -1)
return NESTED_LOOP_ERROR;
else if (res == 1)
return NESTED_LOOP_OK;
}
/*
Send the row complemented by nulls to be joined with the
remaining tables.
*/