diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-04-17 15:17:01 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-04-17 15:17:01 +0200 |
commit | 0e7410a154560486ce4e0c975f122a0b15853bb1 (patch) | |
tree | e65ba67f602f6c99a52a1953b2172043476a5930 /sql/sys_vars.h | |
parent | f398ced7f05e64b0f2bdb8e0a70de907aff9e1eb (diff) | |
parent | 30b2c64c4e87f8924fe817f5c607ae90a990e9e5 (diff) | |
download | mariadb-git-0e7410a154560486ce4e0c975f122a0b15853bb1.tar.gz |
Merge 10.0-base -> 10.0 (GTID).
Diffstat (limited to 'sql/sys_vars.h')
-rw-r--r-- | sql/sys_vars.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/sql/sys_vars.h b/sql/sys_vars.h index 9d91c4175f8..47cb5a327e1 100644 --- a/sql/sys_vars.h +++ b/sql/sys_vars.h @@ -2045,3 +2045,43 @@ public: } }; + +/** + Class for @@global.gtid_pos. +*/ +class Sys_var_gtid_pos: public sys_var +{ +public: + Sys_var_gtid_pos(const char *name_arg, + const char *comment, int flag_args, ptrdiff_t off, size_t size, + CMD_LINE getopt) + : sys_var(&all_sys_vars, name_arg, comment, flag_args, off, getopt.id, + getopt.arg_type, SHOW_CHAR, 0, NULL, VARIABLE_NOT_IN_BINLOG, + NULL, NULL, NULL) + { + option.var_type= GET_STR; + } + bool do_check(THD *thd, set_var *var); + bool session_update(THD *thd, set_var *var) + { + DBUG_ASSERT(false); + return true; + } + bool global_update(THD *thd, set_var *var); + bool check_update_type(Item_result type) { return type != STRING_RESULT; } + void session_save_default(THD *thd, set_var *var) + { + DBUG_ASSERT(false); + } + void global_save_default(THD *thd, set_var *var) + { + /* Record the attempt to use default so we can error. */ + var->value= 0; + } + uchar *session_value_ptr(THD *thd, LEX_STRING *base) + { + DBUG_ASSERT(false); + return NULL; + } + uchar *global_value_ptr(THD *thd, LEX_STRING *base); +}; |