mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user