mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch 10.2 into 10.3
This commit is contained in:
@ -3717,6 +3717,8 @@ public:
|
||||
bool convert_string(LEX_STRING *to, CHARSET_INFO *to_cs,
|
||||
const char *from, size_t from_length,
|
||||
CHARSET_INFO *from_cs);
|
||||
bool reinterpret_string_from_binary(LEX_CSTRING *to, CHARSET_INFO *to_cs,
|
||||
const char *from, size_t from_length);
|
||||
bool convert_string(LEX_CSTRING *to, CHARSET_INFO *to_cs,
|
||||
const char *from, size_t from_length,
|
||||
CHARSET_INFO *from_cs)
|
||||
@ -3733,6 +3735,8 @@ public:
|
||||
{
|
||||
if (!simple_copy_is_possible)
|
||||
return unlikely(convert_string(to, tocs, from->str, from->length, fromcs));
|
||||
if (fromcs == &my_charset_bin)
|
||||
return reinterpret_string_from_binary(to, tocs, from->str, from->length);
|
||||
*to= *from;
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user