summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-02-11 10:55:58 +0200
committerunknown <sanja@askmonty.org>2013-02-11 10:55:58 +0200
commit3f36dfe38c8ae61b3ca16763bce1be350c4ed2c1 (patch)
treec94702878da0b082c11e9b4a2a7814cea8d7f38c /sql/sql_update.cc
parent0b2dc3fc594a9040a2306bc8b5ccac1503208708 (diff)
downloadmariadb-git-3f36dfe38c8ae61b3ca16763bce1be350c4ed2c1.tar.gz
MDEV-4123 fix.
Missed update_used_tables() call for multi-update values.
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 9d00118f450..21e5828699f 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -1473,6 +1473,15 @@ int multi_update::prepare(List<Item> &not_used_values,
DBUG_RETURN(thd->is_fatal_error != 0);
}
+void multi_update::update_used_tables()
+{
+ Item *item;
+ List_iterator_fast<Item> it(*values);
+ while ((item= it++))
+ {
+ item->update_used_tables();
+ }
+}
/*
Check if table is safe to update on fly