summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2015-11-06 13:02:19 +0200
committerMonty <monty@mariadb.org>2015-11-10 13:46:57 +0200
commite3868ee07273b1ea2c495d92891fd7d1ed1eea9e (patch)
tree63e0bc0ba9c05cf3fb098b83cbb6782df47a8897 /sql/sql_handler.cc
parent93d1e5ce0b841bedbc071da85995f15611ed3d34 (diff)
downloadmariadb-git-e3868ee07273b1ea2c495d92891fd7d1ed1eea9e.tar.gz
Don't store vcol bitmaps in TABLE if table doesn't have virtual fields.
(Makes TABLE a bit smaller)
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 673af54ffeb..05e333e37fc 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -375,7 +375,8 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, SQL_HANDLER *reopen)
/* Always read all columns */
table->read_set= &table->s->all_set;
- table->vcol_set= &table->s->all_set;
+ if (table->vcol_set)
+ table->vcol_set= &table->s->all_set;
/* Restore the state. */
thd->set_open_tables(backup_open_tables);