Commit 55cb4251 authored by marko's avatar marko

branches/zip: ha_innobase::check_if_incompatible_data(): When

ROW_FORMAT=DEFAULT, do not compare to get_row_type().
Without this change, fast index creation will be disabled
in recent versions of MySQL 5.1.
parent c0bda951
...@@ -9186,8 +9186,9 @@ ha_innobase::check_if_incompatible_data( ...@@ -9186,8 +9186,9 @@ ha_innobase::check_if_incompatible_data(
} }
/* Check that row format didn't change */ /* Check that row format didn't change */
if ((info->used_fields & HA_CREATE_USED_ROW_FORMAT) && if ((info->used_fields & HA_CREATE_USED_ROW_FORMAT)
get_row_type() != info->row_type) { && info->row_type != ROW_TYPE_DEFAULT
&& info->row_type != get_row_type()) {
return(COMPATIBLE_DATA_NO); return(COMPATIBLE_DATA_NO);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment