1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Bug 2202: CAST from binary to char still returns a binary string

This commit is contained in:
unknown
2003-12-25 17:42:17 +04:00
parent 229cc61277
commit 8fac0f4d27
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))