summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
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
commit84f0e1172981750a85bae8090548784f0aefa1e2 (patch)
tree1220cb8b5a2d5a6f85c1ee028fa98cf95cf2f38c /sql/item_func.cc
parent3ca97c63ba7dc4533b9b8b520263a6f6ee74efc8 (diff)
downloadmariadb-git-84f0e1172981750a85bae8090548784f0aefa1e2.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_func.cc')
-rw-r--r--sql/item_func.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 8fb97dc2873..2099a5a4ccf 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -2641,7 +2641,7 @@ Item *get_system_var(enum_var_type var_type, LEX_STRING name)
pos=strmov(pos,"global.");
memcpy(pos, var->name, var->name_length+1);
// set_name() will allocate the name
- item->set_name(buff,(uint) (pos-buff)+var->name_length);
+ item->set_name(buff,(uint) (pos-buff)+var->name_length, system_charset_info);
return item;
}
@@ -2656,9 +2656,9 @@ Item *get_system_var(enum_var_type var_type, const char *var_name, uint length,
var= find_sys_var(var_name, length);
DBUG_ASSERT(var != 0);
if (!(item=var->item(thd, var_type)))
- return 0; // Impossible
+ return 0; // Impossible
thd->lex.uncacheable();
- item->set_name(item_name); // Will use original name
+ item->set_name(item_name, 0, system_charset_info); // Will use original name
return item;
}