mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
bug#7284: strnxfrm returns different results for equal strings
This commit is contained in:
parent
bcb3783c7c
commit
9842aca3ef
34 changed files with 344 additions and 45 deletions
|
|
@ -631,9 +631,13 @@ int my_strnxfrm_tis620(CHARSET_INFO *cs __attribute__((unused)),
|
|||
uchar * dest, uint len,
|
||||
const uchar * src, uint srclen)
|
||||
{
|
||||
uint dstlen= len;
|
||||
len= (uint) (strmake((char*) dest, (char*) src, min(len, srclen)) -
|
||||
(char*) dest);
|
||||
return (int) thai2sortable(dest, len);
|
||||
len= thai2sortable(dest, len);
|
||||
if (dstlen > len)
|
||||
bfill(dest + len, dstlen - len, ' ');
|
||||
return dstlen;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue