1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge branch '11.2' into 11.4

This commit is contained in:
Oleksandr Byelkin
2024-10-30 09:24:04 +01:00
734 changed files with 10187 additions and 4442 deletions

View File

@ -473,6 +473,7 @@ bool Sql_cmd_update::update_single_table(THD *thd)
{
thd->lex->current_select->save_leaf_tables(thd);
thd->lex->current_select->leaf_tables_saved= true;
thd->lex->current_select->first_cond_optimization= 0;
}
my_ok(thd); // No matching records
@ -513,6 +514,7 @@ bool Sql_cmd_update::update_single_table(THD *thd)
{
thd->lex->current_select->save_leaf_tables(thd);
thd->lex->current_select->leaf_tables_saved= true;
thd->lex->current_select->first_cond_optimization= 0;
}
my_ok(thd); // No matching records
@ -1292,6 +1294,7 @@ update_end:
{
thd->lex->current_select->save_leaf_tables(thd);
thd->lex->current_select->leaf_tables_saved= true;
thd->lex->current_select->first_cond_optimization= 0;
}
((multi_update *)result)->set_found(found);
((multi_update *)result)->set_updated(updated);
@ -1614,8 +1617,8 @@ bool Multiupdate_prelocking_strategy::handle_end(THD *thd)
DBUG_RETURN(true);
List<Item> *fields= &lex->first_select_lex()->item_list;
if (setup_fields_with_no_wrap(thd, Ref_ptr_array(),
*fields, MARK_COLUMNS_WRITE, 0, 0))
if (setup_fields_with_no_wrap(thd, Ref_ptr_array(), *fields,
MARK_COLUMNS_WRITE, 0, 0, THD_WHERE::SET_LIST))
DBUG_RETURN(1);
// Check if we have a view in the list ...