summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-12-14 19:16:29 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2016-02-05 16:32:12 +0100
commit9f3b53fb4a32c9bd6f7dca013a841d4bc86d038f (patch)
tree139cf1ec5ff86e70b86abb8f6096fafceb85245c /sql/sql_update.cc
parenta3d843d9497a81f144470caf7a98047a12318f58 (diff)
downloadmariadb-git-9f3b53fb4a32c9bd6f7dca013a841d4bc86d038f.tar.gz
MDEV-9093 Persistent computed column is not updated when update query contains join
added lost virtual fields update call
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index c8a7990c23e..91cb5722f44 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -2234,6 +2234,12 @@ int multi_update::do_updates()
if (!can_compare_record || compare_record(table))
{
int error;
+ if (table->vfield &&
+ update_virtual_fields(thd, table,
+ (table->triggers ?
+ VCOL_UPDATE_ALL :
+ VCOL_UPDATE_FOR_WRITE)))
+ goto err2;
if ((error= cur_table->view_check_option(thd, ignore)) !=
VIEW_CHECK_OK)
{