From 83683bb6490da40a63051100b0f897246502e433 Mon Sep 17 00:00:00 2001 From: "serg@mysql.com" <> Date: Wed, 5 Oct 2005 19:36:20 +0200 Subject: [PATCH] sql_table.cc: fixed CHECKSUM TABLE to be independent from the first 'deleted' bit in the null bitmask (undefined in the InnoDB) bug#13710 --- sql/sql_table.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 3f0dffea110..0bb4a0bbaed 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -4125,6 +4125,9 @@ bool mysql_checksum_table(THD *thd, TABLE_LIST *tables, HA_CHECK_OPT *check_opt) { /* fix undefined null bits */ t->record[0][t->s->null_bytes-1] |= null_mask; + if (!(t->s->db_create_options & HA_OPTION_PACK_RECORD)) + t->record[0][0] |= 1; + row_crc= my_checksum(row_crc, t->record[0], t->s->null_bytes); }