diff options
author | unknown <serg@sergbook.mysql.com> | 2002-08-05 00:14:21 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2002-08-05 00:14:21 +0200 |
commit | 80e088b427bea538eca3684771ee78ce05f3a523 (patch) | |
tree | 350f7b14fa9950fc38956a356e2f68b9690434e0 /myisam | |
parent | b6fcfd5c994c124aece081833e4bb4b662959e2d (diff) | |
download | mariadb-git-80e088b427bea538eca3684771ee78ce05f3a523.tar.gz |
make SEARCH_PREFIX to work with complex (use_coll) charsets, namely latin1_de
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_search.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/myisam/mi_search.c b/myisam/mi_search.c index 4114125d6f7..d57fd1bb5b2 100644 --- a/myisam/mi_search.c +++ b/myisam/mi_search.c @@ -659,7 +659,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 |