My Project
|
#include <sys_vars.h>
Public Member Functions | |
Sys_var_charptr_func (const char *name_arg, const char *comment, flag_enum flag_arg) | |
bool | session_update (THD *thd, set_var *var) |
bool | global_update (THD *thd, set_var *var) |
void | session_save_default (THD *thd, set_var *var) |
void | global_save_default (THD *thd, set_var *var) |
bool | do_check (THD *thd, set_var *var) |
bool | check_update_type (Item_result type) |
virtual uchar * | session_value_ptr (THD *thd, LEX_STRING *base) |
virtual uchar * | global_value_ptr (THD *thd, LEX_STRING *base) |
Abstract base class for read-only variables (global or session) of string type where the value is generated by some function. This needs to be subclassed; the session_value_ptr or global_value_ptr function should be overridden.
void Sys_var_charptr_func::global_save_default | ( | THD * | thd, |
set_var * | var | ||
) | [inline, virtual] |
save the global default value of the variable in var
Implements sys_var.
void Sys_var_charptr_func::session_save_default | ( | THD * | thd, |
set_var * | var | ||
) | [inline, virtual] |
save the session default value of the variable in var
Implements sys_var.
virtual uchar* Sys_var_charptr_func::session_value_ptr | ( | THD * | thd, |
LEX_STRING * | base | ||
) | [inline, virtual] |
A pointer to a value of the variable for SHOW. It must be of show_val_type type (bool for SHOW_BOOL, int for SHOW_INT, longlong for SHOW_LONGLONG, etc).
Reimplemented from sys_var.
Reimplemented in Sys_var_gtid_owned, and Sys_var_gtid_executed.