mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
Fixed LP bug #879871.
The function add_ref_to_table_cond missed updating the value of join_tab->pre_idx_push_select_cond after having updated the value of join_tab->select->pre_idx_push_select_cond.
This commit is contained in:
parent
402258ff95
commit
b91a6bd88b
5 changed files with 67 additions and 1 deletions
|
|
@ -19969,7 +19969,8 @@ static bool add_ref_to_table_cond(THD *thd, JOIN_TAB *join_tab)
|
|||
Item *new_cond= and_conds(cond_copy, join_tab->select->pre_idx_push_select_cond);
|
||||
if (!new_cond->fixed && new_cond->fix_fields(thd, &new_cond))
|
||||
error= 1;
|
||||
join_tab->select->pre_idx_push_select_cond= new_cond;
|
||||
join_tab->pre_idx_push_select_cond=
|
||||
join_tab->select->pre_idx_push_select_cond= new_cond;
|
||||
}
|
||||
join_tab->set_select_cond(cond, __LINE__);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue