diff options
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index c34ebbca4b2..7c9f11041c8 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -727,6 +727,23 @@ public: Time_zone **get_tz_ptr(THD *thd, enum_var_type type); }; + +class sys_var_max_user_conn : public sys_var_thd +{ +public: + sys_var_max_user_conn(const char *name_arg): + sys_var_thd(name_arg) {} + bool check(THD *thd, set_var *var); + bool update(THD *thd, set_var *var); + bool check_default(enum_var_type type) + { + return type != OPT_GLOBAL || !option_limits; + } + void set_default(THD *thd, enum_var_type type); + SHOW_TYPE type() { return SHOW_LONG; } + byte *value_ptr(THD *thd, enum_var_type type, LEX_STRING *base); +}; + /**************************************************************************** Classes for parsing of the SET command ****************************************************************************/ |