summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-11-07 21:47:48 +0100
committerSergei Golubchik <serg@mariadb.org>2016-12-12 20:27:33 +0100
commit9a3ec79b53ea1916211b4134375ebde5fb7c914c (patch)
tree0730e7a7669bb5635ae77041d028655038184795 /sql/sql_update.cc
parent8b6c0542db908bba548bdb217d78bae25d4522ca (diff)
downloadmariadb-git-9a3ec79b53ea1916211b4134375ebde5fb7c914c.tar.gz
cleanup: TABLE::update_virtual_fields
Make update_virtual_fields() a method of TABLE, to be consistent with TABLE::update_default_fields().
Diffstat (limited to 'sql/sql_update.cc')
-rw-r--r--sql/sql_update.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 3a4bffeb454..1ae90a31ebf 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -619,7 +619,7 @@ int mysql_update(THD *thd,
{
explain->buf_tracker.on_record_read();
if (table->vfield)
- update_virtual_fields(thd, table, VCOL_UPDATE_FOR_READ_WRITE);
+ table->update_virtual_fields(VCOL_UPDATE_FOR_READ_WRITE);
thd->inc_examined_row_count(1);
if (!select || (error= select->skip_record(thd)) > 0)
{
@@ -736,7 +736,7 @@ int mysql_update(THD *thd,
{
explain->tracker.on_record_read();
if (table->vfield)
- update_virtual_fields(thd, table, VCOL_UPDATE_FOR_READ_WRITE);
+ table->update_virtual_fields(VCOL_UPDATE_FOR_READ_WRITE);
thd->inc_examined_row_count(1);
if (!select || select->skip_record(thd) > 0)
{
@@ -2407,7 +2407,7 @@ int multi_update::do_updates()
(error= table->update_default_fields(1, ignore)))
goto err2;
if (table->vfield &&
- update_virtual_fields(thd, table, VCOL_UPDATE_FOR_WRITE))
+ table->update_virtual_fields(VCOL_UPDATE_FOR_WRITE))
goto err2;
if ((error= cur_table->view_check_option(thd, ignore)) !=
VIEW_CHECK_OK)