diff options
author | unknown <dkatz@damien-katzs-computer.local> | 2007-12-13 14:31:20 -0500 |
---|---|---|
committer | unknown <dkatz@damien-katzs-computer.local> | 2007-12-13 14:31:20 -0500 |
commit | 5cd3e1bf4b7a18a649177a2090f55867090600fa (patch) | |
tree | dd975dd335810ae5b8061b6b6fda4def77510618 /sql/set_var.h | |
parent | 2c19aa1aa0fb0f56d628274a1e1fde00d6609fa5 (diff) | |
parent | 2db4748bf2675a1d0b33039c425175f4e2b39940 (diff) | |
download | mariadb-git-5cd3e1bf4b7a18a649177a2090f55867090600fa.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into damien-katzs-computer.local:/Users/dkatz/51runtime
sql/set_var.cc:
Auto merged
sql/set_var.h:
Auto merged
Diffstat (limited to 'sql/set_var.h')
-rw-r--r-- | sql/set_var.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h index 0e282212a3f..e8ef3c54c66 100644 --- a/sql/set_var.h +++ b/sql/set_var.h @@ -305,6 +305,24 @@ public: }; +class sys_var_enum_const :public sys_var +{ + ulong SV::*offset; + TYPELIB *enum_names; +public: + sys_var_enum_const(sys_var_chain *chain, const char *name_arg, ulong SV::*offset_arg, + TYPELIB *typelib, sys_after_update_func func) + :sys_var(name_arg,func), offset(offset_arg), enum_names(typelib) + { chain_sys_var(chain); } + bool check(THD *thd, set_var *var) { return 1; } + bool update(THD *thd, set_var *var) { return 1; } + SHOW_TYPE show_type() { return SHOW_CHAR; } + bool check_update_type(Item_result type) { return 1; } + bool is_readonly() const { return 1; } + uchar *value_ptr(THD *thd, enum_var_type type, LEX_STRING *base); +}; + + class sys_var_thd :public sys_var { public: |