diff options
author | monty@mashka.mysql.fi <> | 2003-05-22 02:57:27 +0300 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-05-22 02:57:27 +0300 |
commit | cb7061ebe40e3a32023db4b4b89db9e46df8ceec (patch) | |
tree | ed5eeb9e58454d28807426e58e1c1c16e4c08de4 /sql/set_var.h | |
parent | 8d52377a5c7ac1880fba575056a8fa87feff00d8 (diff) | |
parent | 6aa8929cf37374fe74c31eb03007961fa119213a (diff) | |
download | mariadb-git-cb7061ebe40e3a32023db4b4b89db9e46df8ceec.tar.gz |
merge
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index d381843df0d..f501426e553 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -235,17 +235,27 @@ class sys_var_thd_ulonglong :public sys_var_thd { public: ulonglong SV::*offset; + bool only_global; sys_var_thd_ulonglong(const char *name_arg, ulonglong SV::*offset_arg) :sys_var_thd(name_arg), offset(offset_arg) {} sys_var_thd_ulonglong(const char *name_arg, ulonglong SV::*offset_arg, - sys_after_update_func func) - :sys_var_thd(name_arg,func), offset(offset_arg) + sys_after_update_func func, bool only_global_arg) + :sys_var_thd(name_arg, func), offset(offset_arg), + only_global(only_global_arg) {} bool update(THD *thd, set_var *var); void set_default(THD *thd, enum_var_type type); SHOW_TYPE type() { return SHOW_LONGLONG; } byte *value_ptr(THD *thd, enum_var_type type); + bool check_default(enum_var_type type) + { + return type == OPT_GLOBAL && !option_limits; + } + bool check_type(enum_var_type type) + { + return (only_global && type != OPT_GLOBAL); + } }; |