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