mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@ -808,7 +808,14 @@ int close_thread_tables(THD *thd)
|
||||
table->s->table_name.str, (ulong) table->query_id));
|
||||
|
||||
if (thd->locked_tables_mode)
|
||||
{
|
||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
||||
if (table->part_info && table->part_info->vers_require_hist_part(thd) &&
|
||||
!thd->stmt_arena->is_stmt_prepare())
|
||||
table->part_info->vers_check_limit(thd);
|
||||
#endif
|
||||
table->vcol_cleanup_expr(thd);
|
||||
}
|
||||
|
||||
/* Detach MERGE children after every statement. Even under LOCK TABLES. */
|
||||
if (thd->locked_tables_mode <= LTM_LOCK_TABLES ||
|
||||
@ -8399,9 +8406,11 @@ int setup_conds(THD *thd, TABLE_LIST *tables, List<TABLE_LIST> &leaves,
|
||||
thd->lex->which_check_option_applicable();
|
||||
bool save_is_item_list_lookup= select_lex->is_item_list_lookup;
|
||||
TABLE_LIST *derived= select_lex->master_unit()->derived;
|
||||
bool save_resolve_in_select_list= select_lex->context.resolve_in_select_list;
|
||||
DBUG_ENTER("setup_conds");
|
||||
|
||||
select_lex->is_item_list_lookup= 0;
|
||||
select_lex->context.resolve_in_select_list= false;
|
||||
|
||||
thd->column_usage= MARK_COLUMNS_READ;
|
||||
DBUG_PRINT("info", ("thd->column_usage: %d", thd->column_usage));
|
||||
@ -8454,7 +8463,8 @@ int setup_conds(THD *thd, TABLE_LIST *tables, List<TABLE_LIST> &leaves,
|
||||
select_lex->where= *conds;
|
||||
}
|
||||
thd->lex->current_select->is_item_list_lookup= save_is_item_list_lookup;
|
||||
DBUG_RETURN(MY_TEST(thd->is_error()));
|
||||
select_lex->context.resolve_in_select_list= save_resolve_in_select_list;
|
||||
DBUG_RETURN(thd->is_error());
|
||||
|
||||
err_no_arena:
|
||||
select_lex->is_item_list_lookup= save_is_item_list_lookup;
|
||||
|
Reference in New Issue
Block a user