diff options
author | Igor Babaev <igor@askmonty.org> | 2012-11-09 23:51:51 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2012-11-09 23:51:51 -0800 |
commit | 094f4cf77890c5a747a57cf2bed149b0b6933507 (patch) | |
tree | 8b49d3ba3b35bf8e914b29163eefac05f6c5420d /sql/sql_table.cc | |
parent | b0fec77df9c359474f8f2c11c538ae0db8e31975 (diff) | |
download | mariadb-git-094f4cf77890c5a747a57cf2bed149b0b6933507.tar.gz |
Fixed bug mdev-3845.
If triggers are used for an insert/update/delete statement than the values of
all virtual columns must be computed as any of them may be used by the triggers.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 6b709915283..9b9ee0a743d 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -8066,7 +8066,7 @@ copy_data_between_tables(TABLE *from,TABLE *to, copy_ptr->do_copy(copy_ptr); } prev_insert_id= to->file->next_insert_id; - update_virtual_fields(thd, to, TRUE); + update_virtual_fields(thd, to, VCOL_UPDATE_FOR_WRITE); if (thd->is_error()) { error= 1; |