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:
@ -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;
|
||||
|
Reference in New Issue
Block a user