mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 08:34:28 +02:00
make SEARCH_PREFIX to work with complex (use_strcoll) charsets
This commit is contained in:
parent
2ed3a33855
commit
1e5e67272c
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue