summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-04-01 18:40:31 +0200
committerSergei Golubchik <serg@mariadb.org>2016-12-12 20:27:32 +0100
commit10089493bdc3f7b782d01fa8d2f3221449965458 (patch)
tree67f79b621bd2bbf8036120eb8774ecf61810b4c6 /sql/sql_delete.cc
parenta632df9de012e7f316c8f4f83938ac721cbeb2b0 (diff)
downloadmariadb-git-10089493bdc3f7b782d01fa8d2f3221449965458.tar.gz
cleanup: update_virtual_fields()
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 4f9afca2f6d..a4e43f87bd0 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -561,9 +561,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
{
explain->tracker.on_record_read();
if (table->vfield)
- update_virtual_fields(thd, table,
- table->triggers ? VCOL_UPDATE_ALL :
- VCOL_UPDATE_FOR_READ);
+ update_virtual_fields(thd, table, VCOL_UPDATE_FOR_READ_WRITE);
thd->inc_examined_row_count(1);
// thd->is_error() is tested to disallow delete row on error
if (!select || select->skip_record(thd) > 0)