summaryrefslogtreecommitdiff
path: root/sql/sql_insert.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_insert.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_insert.cc')
-rw-r--r--sql/sql_insert.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 7a0a114971d..aa2cae59705 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -1501,7 +1501,7 @@ bool mysql_prepare_insert(THD *thd, 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;