diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 7605016dbe1..467c1295517 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -842,8 +842,7 @@ JOIN::optimize() for (uint i_h = const_tables; i_h < tables; i_h++) { TABLE* table_h = join_tab[i_h].table; - if (table_h->db_type == DB_TYPE_INNODB) - table_h->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS); + table_h->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS); } } #endif diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 05d9a5f706f..f49a73dbf2d 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2976,12 +2976,10 @@ int mysql_checksum_table(THD *thd, TABLE_LIST *tables, HA_CHECK_OPT *check_opt) /* calculating table's checksum */ ha_checksum crc= 0; - if (t->db_type == DB_TYPE_INNODB) { - /* InnoDB must be told explicitly to retrieve all columns, because - this function does not set field->query_id in the columns to the - current query id */ - t->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS); - } + /* InnoDB must be told explicitly to retrieve all columns, because + this function does not set field->query_id in the columns to the + current query id */ + t->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS); if (t->file->rnd_init(1)) protocol->store_null();