diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-02-26 12:29:17 +0400 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-02-26 12:29:17 +0400 |
commit | 12749eaf8701a437bfb47925c1d06624b258644c (patch) | |
tree | 34f0b3c957fc57c2ec5b676a015141ea676a3c6d /sql/sql_string.h | |
parent | 99effd31fa2f6be726d105c56c4599c6e2349c8e (diff) | |
download | mariadb-git-12749eaf8701a437bfb47925c1d06624b258644c.tar.gz |
item_func.cc:
Some reoganization
Fixed that binary arguments do not affect result charset
anymore
For example, the second argument doesn't affect charset of result in LEFT(string,10)
sql_string.h:
Strings are binary by default now
sql/sql_string.h:
Strings are binary by default now
sql/item_func.cc:
Some reoganization
Fixed that binary arguments do not affect result charset
anymore
For example, the second argument doesn't affect charset of result in LEFT(string,10)
Diffstat (limited to 'sql/sql_string.h')
-rw-r--r-- | sql/sql_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_string.h b/sql/sql_string.h index 6d54373f642..047faf3e3db 100644 --- a/sql/sql_string.h +++ b/sql/sql_string.h @@ -39,12 +39,12 @@ public: String() { Ptr=0; str_length=Alloced_length=0; alloced=0; - str_charset=default_charset_info; + str_charset= &my_charset_bin; } String(uint32 length_arg) { alloced=0; Alloced_length=0; (void) real_alloc(length_arg); - str_charset=default_charset_info; + str_charset= &my_charset_bin; } String(const char *str, CHARSET_INFO *cs) { |