mirror of
https://github.com/MariaDB/server.git
synced 2025-06-15 00:02:46 +03:00
Bug fix: charset was not initialized
This commit is contained in:
@ -203,6 +203,7 @@ bool String::copy(const String &str)
|
|||||||
str_length=str.str_length;
|
str_length=str.str_length;
|
||||||
bmove(Ptr,str.Ptr,str_length); // May be overlapping
|
bmove(Ptr,str.Ptr,str_length); // May be overlapping
|
||||||
Ptr[str_length]=0;
|
Ptr[str_length]=0;
|
||||||
|
str_charset=str.str_charset;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,6 +46,7 @@ public:
|
|||||||
String(uint32 length_arg)
|
String(uint32 length_arg)
|
||||||
{
|
{
|
||||||
alloced=0; Alloced_length=0; (void) real_alloc(length_arg);
|
alloced=0; Alloced_length=0; (void) real_alloc(length_arg);
|
||||||
|
str_charset=default_charset_info;
|
||||||
}
|
}
|
||||||
String(const char *str, CHARSET_INFO *cs)
|
String(const char *str, CHARSET_INFO *cs)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user