diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-01-22 17:14:36 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-02-13 18:12:04 +0100 |
commit | 29ed440d4457a3cc2ab8c22674eb5dc8f0ac0ce6 (patch) | |
tree | 27d782c447324263bec17de8f254a66408a663ca /sql/sql_table.cc | |
parent | 4cf4b61b24d4331aa930d0b36c36763b7d9ca0cd (diff) | |
download | mariadb-git-29ed440d4457a3cc2ab8c22674eb5dc8f0ac0ce6.tar.gz |
MDEV-11836 vcol.vcol_keys_myisam fails in buildbot and outside
move TABLE::key_read into handler. Because in index merge and DS-MRR
there can be many handlers per table, and some of them use
key read while others don't. "keyread" is really per handler,
not per TABLE property.
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 3856cc46031..eac61052284 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -9839,7 +9839,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, if (to->default_field) to->update_default_fields(0, ignore); if (to->vfield) - to->update_virtual_fields(VCOL_UPDATE_FOR_WRITE); + to->update_virtual_fields(to->file, VCOL_UPDATE_FOR_WRITE); /* This will set thd->is_error() if fatal failure */ if (to->verify_constraints(ignore) == VIEW_CHECK_SKIP) |