1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

BUG#869012: Wrong result with semijoin + materialization + AND in WHERE

- in make_join_select(), use the correct condition to check whether the current table is a SJM nest (the previous 
  condition used to be correct before, but then sj-materialization temp table creation was moved to happen before
  make_join_select was called)
This commit is contained in:
Sergey Petrunya
2011-10-11 21:34:00 +04:00
parent daf52954a8
commit 039da95e3d
6 changed files with 61 additions and 2591 deletions

View File

@ -7969,7 +7969,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
*/
JOIN_TAB *first_inner_tab= tab->first_inner;
if (tab->table)
if (!tab->bush_children)
current_map= tab->table->map;
else
current_map= tab->bush_children->start->emb_sj_nest->sj_inner_tables;