summaryrefslogtreecommitdiff
path: root/sql/set_var.h
diff options
context:
space:
mode:
authorunknown <dkatz@damien-katzs-computer.local>2007-12-13 14:31:20 -0500
committerunknown <dkatz@damien-katzs-computer.local>2007-12-13 14:31:20 -0500
commit5cd3e1bf4b7a18a649177a2090f55867090600fa (patch)
treedd975dd335810ae5b8061b6b6fda4def77510618 /sql/set_var.h
parent2c19aa1aa0fb0f56d628274a1e1fde00d6609fa5 (diff)
parent2db4748bf2675a1d0b33039c425175f4e2b39940 (diff)
downloadmariadb-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.h18
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: