summaryrefslogtreecommitdiff
path: root/sql/sql_load.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-11-24 22:20:32 +0100
committerSergei Golubchik <serg@mariadb.org>2015-11-24 22:21:42 +0100
commita099686e2e9fdc3d7dc2948cc13165c9e8aaf11d (patch)
treeee4de670880d865298c544f300896771cf43a32e /sql/sql_load.cc
parent13989b36c1b8a5cc38a128ef1a071a7c8365ad9a (diff)
downloadmariadb-git-a099686e2e9fdc3d7dc2948cc13165c9e8aaf11d.tar.gz
cleanup: remove Field->stored_in_db, Create_field->stored_in_db
and don't set Create_field->sql_type to MYSQL_TYPE_VIRTUAL temporarily only to change it again few lines later.
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r--sql/sql_load.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc
index 9cf82c1c6d0..b2180d4997a 100644
--- a/sql/sql_load.cc
+++ b/sql/sql_load.cc
@@ -303,7 +303,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
{
for (Field **vfield_ptr= table->vfield; *vfield_ptr; vfield_ptr++)
{
- if ((*vfield_ptr)->stored_in_db)
+ if ((*vfield_ptr)->vcol_info->stored_in_db)
{
thd->lex->unit.insert_table_with_stored_vcol= table;
break;