1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge branch 'MDEV-7816' of git://github.com/f4rnham/server into 10.1

This commit is contained in:
Alexander Barkov
2015-04-10 15:17:44 +04:00
3 changed files with 25 additions and 0 deletions

View File

@ -6383,6 +6383,13 @@ static bool fill_alter_inplace_info(THD *thd,
new_field->field->field_index != key_part->fieldnr - 1)
goto index_changed;
}
/* Check that key comment is not changed. */
if (table_key->comment.length != new_key->comment.length ||
(table_key->comment.length &&
strcmp(table_key->comment.str, new_key->comment.str) != 0))
goto index_changed;
continue;
index_changed: