diff options
author | serg@sergbook.mysql.com <> | 2002-08-05 00:14:21 +0200 |
---|---|---|
committer | serg@sergbook.mysql.com <> | 2002-08-05 00:14:21 +0200 |
commit | 9fae3956c95806498fe7515ddd6c2a6fa4ce99ed (patch) | |
tree | 350f7b14fa9950fc38956a356e2f68b9690434e0 /myisam/mi_search.c | |
parent | 1b29ee50fc09ba5cf08bec7c700a0c890da4bcb0 (diff) | |
download | mariadb-git-9fae3956c95806498fe7515ddd6c2a6fa4ce99ed.tar.gz |
make SEARCH_PREFIX to work with complex (use_coll) charsets, namely latin1_de
Diffstat (limited to 'myisam/mi_search.c')
-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 |