diff options
author | unknown <sanja@askmonty.org> | 2013-02-11 10:55:58 +0200 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2013-02-11 10:55:58 +0200 |
commit | 3f36dfe38c8ae61b3ca16763bce1be350c4ed2c1 (patch) | |
tree | c94702878da0b082c11e9b4a2a7814cea8d7f38c /sql/sql_update.cc | |
parent | 0b2dc3fc594a9040a2306bc8b5ccac1503208708 (diff) | |
download | mariadb-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.cc | 9 |
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> ¬_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 |