=== modified file 'storage/myisam/mi_check.c' --- storage/myisam/mi_check.c 2013-02-27 15:33:55 +0000 +++ storage/myisam/mi_check.c 2013-06-25 02:31:36 +0000 @@ -4270,13 +4270,15 @@ /* Copy the column definitions */ memcpy((uchar*) recdef,(uchar*) share.rec, (size_t) (sizeof(MI_COLUMNDEF)*(share.base.fields+1))); - for (rec=recdef,end=recdef+share.base.fields; rec != end ; rec++) + if (unpack && !(share.options & HA_OPTION_PACK_RECORD)) { - if (unpack && !(share.options & HA_OPTION_PACK_RECORD) && - rec->type != FIELD_BLOB && - rec->type != FIELD_VARCHAR && - rec->type != FIELD_CHECK) - rec->type=(int) FIELD_NORMAL; + for (rec=recdef,end=recdef+share.base.fields; rec != end ; rec++) + { + if (rec->type != FIELD_BLOB && + rec->type != FIELD_VARCHAR && + rec->type != FIELD_CHECK) + rec->type=(int) FIELD_NORMAL; + } } /* Change the new key to point at the saved key segments */