mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.6' into 10.9
This commit is contained in:
@@ -86,7 +86,7 @@ static int my_strnncoll_binary(CHARSET_INFO * cs __attribute__((unused)),
|
||||
my_bool t_is_prefix)
|
||||
{
|
||||
size_t len=MY_MIN(slen,tlen);
|
||||
int cmp= memcmp(s,t,len);
|
||||
int cmp= len ? memcmp(s, t, len) : 0;
|
||||
return cmp ? cmp : (int)((t_is_prefix ? len : slen) - tlen);
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ static int my_strnncoll_8bit_bin(CHARSET_INFO * cs __attribute__((unused)),
|
||||
my_bool t_is_prefix)
|
||||
{
|
||||
size_t len=MY_MIN(slen,tlen);
|
||||
int cmp= memcmp(s,t,len);
|
||||
int cmp= len ? memcmp(s, t, len) : 0;
|
||||
return cmp ? cmp : (int)((t_is_prefix ? len : slen) - tlen);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user