mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@@ -2131,6 +2131,7 @@ JOIN::optimize_inner()
|
||||
/* Merge all mergeable derived tables/views in this SELECT. */
|
||||
if (select_lex->handle_derived(thd->lex, DT_MERGE))
|
||||
DBUG_RETURN(TRUE);
|
||||
table_count= select_lex->leaf_tables.elements;
|
||||
}
|
||||
|
||||
if (select_lex->first_cond_optimization &&
|
||||
@@ -2178,6 +2179,8 @@ JOIN::optimize_inner()
|
||||
|
||||
eval_select_list_used_tables();
|
||||
|
||||
table_count= select_lex->leaf_tables.elements;
|
||||
|
||||
if (select_lex->options & OPTION_SCHEMA_TABLE &&
|
||||
optimize_schema_tables_memory_usage(select_lex->leaf_tables))
|
||||
DBUG_RETURN(1);
|
||||
@@ -15443,6 +15446,7 @@ void JOIN::cleanup(bool full)
|
||||
/* Free the original optimized join created for the group_by_handler */
|
||||
join_tab= original_join_tab;
|
||||
original_join_tab= 0;
|
||||
table_count= original_table_count;
|
||||
}
|
||||
|
||||
if (join_tab)
|
||||
|
Reference in New Issue
Block a user