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

A cleanup for the contributed patch for

MDEV-7816 ALTER with DROP INDEX and ADD INDEX .. COMMENT='comment2' ignores the new comment
This commit is contained in:
Alexander Barkov
2015-04-10 17:04:44 +04:00
parent 23e90e9a22
commit 135f203d28
3 changed files with 23 additions and 5 deletions

View File

@ -6387,8 +6387,9 @@ static bool fill_alter_inplace_info(THD *thd,
/* 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;
memcmp(table_key->comment.str, new_key->comment.str,
table_key->comment.length) != 0))
goto index_changed;
continue;