summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-05-23 08:28:10 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-05-23 08:28:10 +0300
commite86c1e671a80fd3b410f8e6ebb18cdbad4f1b999 (patch)
tree4d90ffef464bf2daa1e28478ab0083213667ddd0 /sql/sql_update.cc
parent20d192bcfc96b141f525d588ff80e408077ec7ab (diff)
parenta0f0687f6ce64b282d0712ca1d769fc1bc55c140 (diff)
downloadmariadb-git-e86c1e671a80fd3b410f8e6ebb18cdbad4f1b999.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index ddf6864a309..454fed52242 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -2122,10 +2122,9 @@ int multi_update::prepare(List<Item> &not_used_values,
if (!tl)
DBUG_RETURN(1);
update.link_in_list(tl, &tl->next_local);
- tl->shared= table_count++;
+ table_ref->shared= tl->shared= table_count++;
table->no_keyread=1;
table->covering_keys.clear_all();
- table->pos_in_table_list= tl;
table->prepare_triggers_for_update_stmt_or_event();
table->reset_default_fields();
}