diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-10-22 09:40:45 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-10-22 09:40:45 +0200 |
commit | e19588dc70890770ee37825668f2cd7e22f56496 (patch) | |
tree | 8566ba6778172fcba32ea4c13998ea9960f81f6b | |
parent | 72e144a47080d213fa5864adc71f5c00f1b893df (diff) | |
download | mariadb-git-e19588dc70890770ee37825668f2cd7e22f56496.tar.gz |
embedded tests
-rw-r--r-- | client/sql_string.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/client/sql_string.h b/client/sql_string.h index bc0179d1e45..60f3c557367 100644 --- a/client/sql_string.h +++ b/client/sql_string.h @@ -32,13 +32,13 @@ uint32 copy_and_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs, class String { char *Ptr; - uint32 str_length,Alloced_length; + uint32 str_length,Alloced_length, extra_alloc; bool alloced; CHARSET_INFO *str_charset; public: String() { - Ptr=0; str_length=Alloced_length=0; alloced=0; + Ptr=0; str_length=Alloced_length=extra_alloc=0; alloced=0; str_charset= &my_charset_bin; } String(uint32 length_arg) @@ -48,23 +48,24 @@ public: } String(const char *str, CHARSET_INFO *cs) { - Ptr=(char*) str; str_length=(uint) strlen(str); Alloced_length=0; alloced=0; + Ptr=(char*) str; str_length= (uint32) strlen(str); + Alloced_length= extra_alloc= 0; alloced=0; str_charset=cs; } String(const char *str,uint32 len, CHARSET_INFO *cs) { - Ptr=(char*) str; str_length=len; Alloced_length=0; alloced=0; + Ptr=(char*) str; str_length=len; Alloced_length= extra_alloc=0; alloced=0; str_charset=cs; } String(char *str,uint32 len, CHARSET_INFO *cs) { - Ptr=(char*) str; Alloced_length=str_length=len; alloced=0; + Ptr=(char*) str; Alloced_length=str_length=len; extra_alloc= 0; alloced=0; str_charset=cs; } String(const String &str) { Ptr=str.Ptr ; str_length=str.str_length ; - Alloced_length=str.Alloced_length; alloced=0; + Alloced_length=str.Alloced_length; extra_alloc= 0; alloced=0; str_charset=str.str_charset; } static void *operator new(size_t size, MEM_ROOT *mem_root) |