diff options
author | unknown <serg@sergbook.mysql.com> | 2002-08-05 09:41:48 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2002-08-05 09:41:48 +0200 |
commit | 1e5e67272cbafa576fe556ef6c20f5f9f9d5acdf (patch) | |
tree | ad24ac05a63f18628c0f075b631f3e74e1407820 /mysys/my_handler.c | |
parent | 2ed3a33855c1cc652c9d0ed3bf8de1636d5c61ce (diff) | |
download | mariadb-git-1e5e67272cbafa576fe556ef6c20f5f9f9d5acdf.tar.gz |
make SEARCH_PREFIX to work with complex (use_strcoll) charsets
Diffstat (limited to 'mysys/my_handler.c')
-rw-r--r-- | mysys/my_handler.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_handler.c b/mysys/my_handler.c index 1e7d8a702d2..5b68b427f3a 100644 --- a/mysys/my_handler.c +++ b/mysys/my_handler.c @@ -25,7 +25,8 @@ int mi_compare_text(CHARSET_INFO *charset_info, uchar *a, uint a_length, #ifdef USE_STRCOLL if (use_strcoll(charset_info)) { - /* QQ: This needs to work with part keys at some point */ + if (part_key && b_length < a_length) + a_length=b_length; return my_strnncoll(charset_info, a, a_length, b, b_length); } else |