diff options
author | heikki@hundin.mysql.fi <> | 2003-10-07 17:28:59 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2003-10-07 17:28:59 +0300 |
commit | 6112853cdab2770e92f9cfefdfef9c0a14b71cb7 (patch) | |
tree | d53a5cc4e9736e149276ba08d53a7dd09a14b4fd /sql/sql_table.cc | |
parent | 862ff0ed1c1dad812af60987d7ec1a2706d3772c (diff) | |
download | mariadb-git-6112853cdab2770e92f9cfefdfef9c0a14b71cb7.tar.gz |
Many files:
Multiple tablespaces for InnoDB
sql_table.cc:
Tell explicitly that InnoDB should retrieve all columns in CHECKSUM TABLE
sql_update.cc, sql_select.cc, my_base.h:
More descriptive flag name HA_EXTRA_RETRIEVE_ALL_COLS
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index b8f4b360dda..16afd592e59 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2641,6 +2641,14 @@ 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); + } + if (t->file->rnd_init(1)) protocol->store_null(); else |