branches/5.1: ha_innobase::check_if_incompatible_data(): Check

HA_CREATE_USED_ROW_FORMAT before comparing row_type.  Previously,
the comparison was incorrectly guarded by the presence of an
AUTO_INCREMENT attribute.
This commit is contained in:
marko 2008-03-17 08:23:03 +00:00
parent aa96dab4ee
commit cbf6c76a44

View file

@ -7935,7 +7935,7 @@ bool ha_innobase::check_if_incompatible_data(
}
/* Check that row format didn't change */
if ((info->used_fields & HA_CREATE_USED_AUTO) &&
if ((info->used_fields & HA_CREATE_USED_ROW_FORMAT) &&
get_row_type() != info->row_type) {
return COMPATIBLE_DATA_NO;