diff options
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 |