diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 9a743388149..a3d834b0e42 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -5314,7 +5314,10 @@ static int get_schema_tables_record(THD *thd, TABLE_LIST *tables, HA_STATUS_TIME | HA_STATUS_VARIABLE_EXTRA | HA_STATUS_AUTO)) != 0) + { + file->print_error(info_error, MYF(0)); goto err; + } enum row_type row_type = file->get_row_type(); switch (row_type) {