mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug 2202: CAST from binary to char still returns a binary string
This commit is contained in:
@ -235,7 +235,7 @@ bool String::copy(const char *str, uint32 arg_length,
|
||||
{
|
||||
if ((from_cs == &my_charset_bin) || (to_cs == &my_charset_bin))
|
||||
{
|
||||
return copy(str, arg_length, &my_charset_bin);
|
||||
return copy(str, arg_length, to_cs);
|
||||
}
|
||||
uint32 new_length= to_cs->mbmaxlen*arg_length;
|
||||
if (alloc(new_length))
|
||||
|
Reference in New Issue
Block a user