1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

MDEV-9093 Persistent computed column is not updated when update query contains join

added lost virtual fields update call
This commit is contained in:
Oleksandr Byelkin
2015-12-14 19:16:29 +01:00
parent a3d843d949
commit 9f3b53fb4a
4 changed files with 85 additions and 0 deletions

View File

@@ -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)
{