summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-10-22 17:33:42 +0200
committerSergei Golubchik <serg@mariadb.org>2016-12-12 20:27:38 +0100
commit0e401bf7bfe4a14609e25c4335b9d4e0619e35ec (patch)
treea79fa574ae3b42d7cb28188cd449f02c28a8ec5d /sql/sql_handler.cc
parentb8f51c04d31e15570c53dc2e61258304ee49047a (diff)
downloadmariadb-git-0e401bf7bfe4a14609e25c4335b9d4e0619e35ec.tar.gz
bugfix: move vcol calculations down into the handler
This fixes a bug where handler::read_range_first (for example) needed to compare vcol values that were not calculated yet. As a bonus it fixes few cases where vcols were calculated twice
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index bab33919e03..735adeadb11 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -929,9 +929,6 @@ retry:
}
goto ok;
}
- /* Generate values for virtual fields */
- if (table->vfield)
- table->update_virtual_fields(VCOL_UPDATE_FOR_READ);
if (cond && !cond->val_int())
{
if (thd->is_error())