diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-11 14:33:41 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-12-11 14:33:41 +0200 |
commit | c19972fc8708778bd6070715b449351a39edb0cc (patch) | |
tree | 8301807999188bf635b403ee5d2fb5932eaa8c7d /storage/innobase/dict | |
parent | fa25921b59aacdc6be050653f6cce17df12c6937 (diff) | |
download | mariadb-git-c19972fc8708778bd6070715b449351a39edb0cc.tar.gz |
MDEV-9251: Fix MySQL Bug#20755615: InnoDB compares column names case sensitively,
while according to Storage Engine API column names should be compared
case insensitively. This can cause FRM and InnoDB data dictionary to
go out of sync.
Diffstat (limited to 'storage/innobase/dict')
-rw-r--r-- | storage/innobase/dict/dict0dict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/dict/dict0dict.c b/storage/innobase/dict/dict0dict.c index 17e9eb122df..33b110ce97a 100644 --- a/storage/innobase/dict/dict0dict.c +++ b/storage/innobase/dict/dict0dict.c @@ -2010,7 +2010,7 @@ dict_index_find_cols( dict_field_t* field = dict_index_get_nth_field(index, i); for (j = 0; j < table->n_cols; j++) { - if (!strcmp(dict_table_get_col_name(table, j), + if (!innobase_strcasecmp(dict_table_get_col_name(table, j), field->name)) { field->col = dict_table_get_nth_col(table, j); |