summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-03-17 21:56:34 +0400
committerunknown <bar@bar.mysql.r18.ru>2003-03-17 21:56:34 +0400
commita1585e66f63f5b3f78dc9ea568c8f8d8da85841e (patch)
tree1220cb8b5a2d5a6f85c1ee028fa98cf95cf2f38c /sql/item.h
parent862369e33cba12eafc35a08b8bafb53d3735eca3 (diff)
downloadmariadb-git-a1585e66f63f5b3f78dc9ea568c8f8d8da85841e.tar.gz
mysql-test/t/ctype_many.test:
Automatic client-server charset recoding has been added mysys/charset.c: Automatic client-server charset recoding has been added sql/item.cc: Automatic client-server charset recoding has been added sql/item.h: Automatic client-server charset recoding has been added sql/item_cmpfunc.cc: Automatic client-server charset recoding has been added sql/item_func.cc: Automatic client-server charset recoding has been added sql/item_strfunc.cc: Automatic client-server charset recoding has been added sql/mysqld.cc: Automatic client-server charset recoding has been added sql/protocol.cc: Automatic client-server charset recoding has been added sql/sql_string.cc: Automatic client-server charset recoding has been added sql/sql_yacc.yy: Automatic client-server charset recoding has been added strings/ctype-utf8.c: Automatic client-server charset recoding has been added
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item.h b/sql/item.h
index 7b31f03f6ac..2bb22d47083 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -63,7 +63,7 @@ public:
*/
Item(THD *thd, Item &item);
virtual ~Item() { name=0; } /*lint -e1509 */
- void set_name(const char *str,uint length=0);
+ void set_name(const char *str,uint length, CHARSET_INFO *cs);
void init_make_field(Send_field *tmp_field,enum enum_field_types type);
virtual void make_field(Send_field *field);
virtual bool fix_fields(THD *, struct st_table_list *, Item **);
@@ -359,7 +359,7 @@ public:
str_value.set(str,length,cs);
coercibility= coer;
max_length=length;
- name=(char*) str_value.ptr();
+ set_name(str, length, cs);
decimals=NOT_FIXED_DEC;
}
Item_string(const char *name_par, const char *str, uint length,
@@ -368,7 +368,7 @@ public:
str_value.set(str,length,cs);
coercibility= coer;
max_length=length;
- name=(char*) name_par;
+ set_name(name_par,0,cs);
decimals=NOT_FIXED_DEC;
}
~Item_string() {}