diff --git a/sql/sql_base.cc b/sql/sql_base.cc index dc41d7faa18a1..f12ba831c7ddb 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -2047,7 +2047,7 @@ bool open_table(THD *thd, TABLE_LIST *table_list, Open_table_context *ot_ctx) table_list->table= table; if (!from_share && table->vcol_fix_expr(thd)) - goto err_lock; + DBUG_RETURN(true); #ifdef WITH_PARTITION_STORAGE_ENGINE if (unlikely(table->part_info))