Bug fix: charset was not initialized
This commit is contained in:
parent
65eb2e9f78
commit
ba963bb64d
@ -203,6 +203,7 @@ bool String::copy(const String &str)
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
String(uint32 length_arg)
|
||||
{
|
||||
alloced=0; Alloced_length=0; (void) real_alloc(length_arg);
|
||||
str_charset=default_charset_info;
|
||||
}
|
||||
String(const char *str, CHARSET_INFO *cs)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user