summaryrefslogtreecommitdiff
path: root/mysys/make-conf.c
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2006-06-22 00:29:04 +0400
committerunknown <evgen@moonbone.local>2006-06-22 00:29:04 +0400
commit822e8866c7009d8d7bd25300f1cc4c09c110c640 (patch)
treef4a8dc3dfd444b56bbc2b026f7e319e27f959229 /mysys/make-conf.c
parentfa83f8baa094ed45330afa0e2516eeb31e803b27 (diff)
downloadmariadb-git-822e8866c7009d8d7bd25300f1cc4c09c110c640.tar.gz
Fixed bug #14896.
This bug in Field_string::cmp resulted in a wrong comparison with keys in partial indexes over multi-byte character fields. Given field a is declared as a varchar(16) collate utf8_unicode_ci INDEX(a(4)) gives us an example of such an index. Wrong key comparisons could lead to wrong result sets if the selected query execution plan used a range scan by a partial index over a utf8 character field. This also caused wrong results in many other cases. mysql-test/t/ctype_utf8.test: Added test cases for bug #14896. mysql-test/r/ctype_utf8.result: Added test cases for bug #14896. sql/field.cc: Fixed bug #14896. This bug in Field_string::cmp resulted in a wrong comparison with keys in partial indexes over multi-byte character fields. Given field a is declared as a varchar(16) collate utf8_unicode_ci INDEX(a(4)) gives us an example of such an index. Wrong key comparisons could lead to wrong result sets if the selected query execution plan used a range scan by a partial index over a utf8 character field. This also caused wrong results in many other cases.
Diffstat (limited to 'mysys/make-conf.c')
0 files changed, 0 insertions, 0 deletions