1
0
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:
bar@bar.intranet.mysql.r18.ru
2003-12-25 17:42:17 +04:00
parent 37467ebe07
commit 6f0c8a7bf4
4 changed files with 31 additions and 1 deletions

View File

@ -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))