mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -237,8 +237,8 @@ bool Binary_string::copy(const Binary_string &str)
|
||||
{
|
||||
if (alloc(str.str_length))
|
||||
return TRUE;
|
||||
str_length=str.str_length;
|
||||
bmove(Ptr,str.Ptr,str_length); // May be overlapping
|
||||
if ((str_length=str.str_length))
|
||||
bmove(Ptr,str.Ptr,str_length); // May be overlapping
|
||||
Ptr[str_length]=0;
|
||||
return FALSE;
|
||||
}
|
||||
@ -574,8 +574,11 @@ bool Binary_string::append_ulonglong(ulonglong val)
|
||||
|
||||
bool String::append(const char *s, size_t arg_length, CHARSET_INFO *cs)
|
||||
{
|
||||
if (!arg_length)
|
||||
return false;
|
||||
|
||||
uint32 offset;
|
||||
|
||||
|
||||
if (needs_conversion((uint32)arg_length, cs, charset(), &offset))
|
||||
{
|
||||
size_t add_length;
|
||||
|
Reference in New Issue
Block a user