mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -409,7 +409,7 @@ void JOIN::init(THD *thd_arg, List<Item> &fields_arg,
|
||||
table_count= 0;
|
||||
top_join_tab_count= 0;
|
||||
const_tables= 0;
|
||||
const_table_map= found_const_table_map= 0;
|
||||
const_table_map= found_const_table_map= not_usable_rowid_map= 0;
|
||||
aggr_tables= 0;
|
||||
eliminated_tables= 0;
|
||||
join_list= 0;
|
||||
@ -2476,7 +2476,7 @@ JOIN::optimize_inner()
|
||||
/*
|
||||
We have to remove constants and duplicates from group_list before
|
||||
calling make_join_statistics() as this may call get_best_group_min_max()
|
||||
which needs a simplfied group_list.
|
||||
which needs a simplified group_list.
|
||||
*/
|
||||
if (group_list && table_count == 1)
|
||||
{
|
||||
@ -5864,7 +5864,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
|
||||
caller to abort with a zero row result.
|
||||
*/
|
||||
TABLE_LIST *emb= s->table->pos_in_table_list->embedding;
|
||||
if (emb && !emb->sj_on_expr)
|
||||
if (emb && !emb->sj_on_expr && !*s->on_expr_ref)
|
||||
{
|
||||
/* Mark all tables in a multi-table join nest as const */
|
||||
mark_join_nest_as_const(join, emb, &found_const_table_map,
|
||||
|
Reference in New Issue
Block a user