From a099686e2e9fdc3d7dc2948cc13165c9e8aaf11d Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 24 Nov 2015 22:20:32 +0100 Subject: 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. --- sql/sql_insert.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_insert.cc') 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; -- cgit v1.2.1