summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-02-26 16:37:41 +0400
committerunknown <bar@bar.mysql.r18.ru>2003-02-26 16:37:41 +0400
commit61bd85562387986531efaa556935e409d592951a (patch)
tree1bc6834a9211d78b78e8ed505bb83afa26969219 /sql/set_var.h
parent2667f61b76d2749540525cd905e9449d6050fa6a (diff)
downloadmariadb-git-61bd85562387986531efaa556935e409d592951a.tar.gz
set_var.cc, set_var.h:
New thread variable client_character_set sql/set_var.h: New thread variable client_character_set sql/set_var.cc: New thread variable client_character_set
Diffstat (limited to 'sql/set_var.h')
-rw-r--r--sql/set_var.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index 3b4ec9d5bfe..d80285d0e40 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -423,6 +423,22 @@ public:
bool check_default(enum_var_type type) { return 0; }
};
+class sys_var_thd_client_charset :public sys_var_thd
+{
+public:
+ sys_var_thd_client_charset(const char *name_arg) :sys_var_thd(name_arg)
+ {}
+ bool check(THD *thd, set_var *var);
+ bool update(THD *thd, set_var *var);
+ SHOW_TYPE type() { return SHOW_CHAR; }
+ byte *value_ptr(THD *thd, enum_var_type type);
+ bool check_update_type(Item_result type)
+ {
+ return type != STRING_RESULT; /* Only accept strings */
+ }
+ bool check_default(enum_var_type type) { return 0; }
+};
+
/* Variable that you can only read from */
@@ -473,6 +489,7 @@ public:
enum_var_type type;
union
{
+ CHARSET_INFO *charset;
CONVERT *convert;
ulong ulong_value;
} save_result;