summaryrefslogtreecommitdiff
path: root/mysys/my_handler.c
diff options
context:
space:
mode:
authorserg@sergbook.mysql.com <>2002-08-05 09:41:48 +0200
committerserg@sergbook.mysql.com <>2002-08-05 09:41:48 +0200
commitf1fb3649c5e935d97aed64d45afe0486605b00ca (patch)
treead24ac05a63f18628c0f075b631f3e74e1407820 /mysys/my_handler.c
parent1966f4b8392aa63bd720a076ae788a6f3619c493 (diff)
downloadmariadb-git-f1fb3649c5e935d97aed64d45afe0486605b00ca.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.c3
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