mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.2 into 10.3
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
|
||||
Copyright (c) 2016, MariaDB
|
||||
Copyright (c) 2016, 2020, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -229,8 +229,8 @@ bool String::copy(const 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;
|
||||
str_charset=str.str_charset;
|
||||
return FALSE;
|
||||
@ -593,8 +593,11 @@ bool 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, str_charset, &offset))
|
||||
{
|
||||
size_t add_length;
|
||||
|
Reference in New Issue
Block a user