mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
This commit is contained in:
@ -535,6 +535,14 @@ bool String::append(const char *s)
|
||||
return append(s, (uint) strlen(s));
|
||||
}
|
||||
|
||||
bool String::append_longlong(longlong val)
|
||||
{
|
||||
if (realloc(str_length+MAX_BIGINT_WIDTH+2))
|
||||
return TRUE;
|
||||
char *end= (char*) longlong10_to_str(val, (char*) Ptr + str_length, -10);
|
||||
str_length= end - Ptr;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
bool String::append_ulonglong(ulonglong val)
|
||||
@ -546,15 +554,6 @@ bool String::append_ulonglong(ulonglong val)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
bool String::append_longlong(longlong val)
|
||||
{
|
||||
if (realloc(str_length+MAX_BIGINT_WIDTH+2))
|
||||
return TRUE;
|
||||
char *end= (char*) longlong10_to_str(val, (char*) Ptr + str_length, -10);
|
||||
str_length= end - Ptr;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
Append a string in the given charset to the string
|
||||
with character set recoding
|
||||
|
Reference in New Issue
Block a user