diff options
author | bar@mysql.com <> | 2004-07-23 19:10:06 +0500 |
---|---|---|
committer | bar@mysql.com <> | 2004-07-23 19:10:06 +0500 |
commit | 6cad42e3ceb0c7f159efd9ac7b713657666fe565 (patch) | |
tree | c49038ec1275d0acffa8dc30d19d47be0d3ae3a7 /sql/field.cc | |
parent | 0f298f02dbc1ed7b4f9a178d154a7b946cdcffe8 (diff) | |
download | mariadb-git-6cad42e3ceb0c7f159efd9ac7b713657666fe565.tar.gz |
Bug #4555 ALTER TABLE crashes mysqld with enum column collated utf8_unicode_ci
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/field.cc b/sql/field.cc index 26c84575b4d..c96a5a6d809 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -5625,8 +5625,11 @@ bool Field_enum::eq_def(Field *field) if (typelib->count < from_lib->count) return 0; for (uint i=0 ; i < from_lib->count ; i++) - if (my_strcasecmp(field_charset, - typelib->type_names[i],from_lib->type_names[i])) + if (my_strnncoll(field_charset, + (const uchar*)typelib->type_names[i], + strlen(typelib->type_names[i]), + (const uchar*)from_lib->type_names[i], + strlen(from_lib->type_names[i]))) return 0; return 1; } |