summaryrefslogtreecommitdiff
path: root/storage/innobase/dict
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2018-10-25 21:36:24 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-11-05 11:59:59 +0200
commit03977e8273cbd33c3cbfec191ceee856f973ce1a (patch)
tree635118f7f91401479f2938d32161fbf7eb8dcde6 /storage/innobase/dict
parentf0cb21ea2e00b9f985ed0a76f1e6edbdf9d846cd (diff)
downloadmariadb-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.cc4
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);
}