1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00
This commit is contained in:
serg@serg.mylan
2004-03-15 22:02:47 +01:00
parent e43ac76094
commit 3351b01d83
2 changed files with 5 additions and 8 deletions

View File

@ -842,8 +842,7 @@ JOIN::optimize()
for (uint i_h = const_tables; i_h < tables; i_h++) for (uint i_h = const_tables; i_h < tables; i_h++)
{ {
TABLE* table_h = join_tab[i_h].table; 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 #endif

View File

@ -2979,12 +2979,10 @@ int mysql_checksum_table(THD *thd, TABLE_LIST *tables, HA_CHECK_OPT *check_opt)
/* calculating table's checksum */ /* calculating table's checksum */
ha_checksum crc= 0; ha_checksum crc= 0;
if (t->db_type == DB_TYPE_INNODB) { /* InnoDB must be told explicitly to retrieve all columns, because
/* InnoDB must be told explicitly to retrieve all columns, because this function does not set field->query_id in the columns to the
this function does not set field->query_id in the columns to the current query id */
current query id */ t->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS);
t->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS);
}
if (t->file->rnd_init(1)) if (t->file->rnd_init(1))
protocol->store_null(); protocol->store_null();