diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-10-22 17:33:42 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-12 20:27:38 +0100 |
commit | 0e401bf7bfe4a14609e25c4335b9d4e0619e35ec (patch) | |
tree | a79fa574ae3b42d7cb28188cd449f02c28a8ec5d /sql/sql_handler.cc | |
parent | b8f51c04d31e15570c53dc2e61258304ee49047a (diff) | |
download | mariadb-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.cc | 3 |
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()) |