diff options
author | Eugene Kosov <claprix@yandex.ru> | 2018-10-25 21:36:24 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-11-05 11:59:59 +0200 |
commit | 03977e8273cbd33c3cbfec191ceee856f973ce1a (patch) | |
tree | 635118f7f91401479f2938d32161fbf7eb8dcde6 /storage/innobase/dict | |
parent | f0cb21ea2e00b9f985ed0a76f1e6edbdf9d846cd (diff) | |
download | mariadb-git-03977e8273cbd33c3cbfec191ceee856f973ce1a.tar.gz |
MDEV-13671 InnoDB should use case-insensitive column name comparisons like the rest of the server
Problem affects INPLACE ALTER rename columns.
innobase_rename_column_try(): some strcmp() was replaced with my_strcasecmp(),
queries to update data dictionary was updated to not match column name case.
Diffstat (limited to 'storage/innobase/dict')
-rw-r--r-- | storage/innobase/dict/dict0mem.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/innobase/dict/dict0mem.cc b/storage/innobase/dict/dict0mem.cc index 81a4cd9c6c6..c182aaba676 100644 --- a/storage/innobase/dict/dict0mem.cc +++ b/storage/innobase/dict/dict0mem.cc @@ -498,9 +498,7 @@ dict_mem_table_col_rename( s += len + 1; } - /* This could fail if the data dictionaries are out of sync. - Proceed with the renaming anyway. */ - ut_ad(!strcmp(from, s)); + ut_ad(!my_strcasecmp(system_charset_info, from, s)); dict_mem_table_col_rename_low(table, nth_col, to, s); } |