My Project
|
#include <sys_vars.h>
Public Member Functions | |
Sys_var_integer (const char *name_arg, const char *comment, int flag_args, ptrdiff_t off, size_t size, CMD_LINE getopt, T min_val, T max_val, T def_val, uint block_size, PolyLock *lock=0, enum binlog_status_enum binlog_status_arg=VARIABLE_NOT_IN_BINLOG, on_check_function on_check_func=0, on_update_function on_update_func=0, const char *substitute=0, int parse_flag=PARSE_NORMAL) | |
bool | do_check (THD *thd, set_var *var) |
bool | session_update (THD *thd, set_var *var) |
bool | global_update (THD *thd, set_var *var) |
bool | check_update_type (Item_result type) |
void | session_save_default (THD *thd, set_var *var) |
void | global_save_default (THD *thd, set_var *var) |
Sys_var_integer template is used to generate Sys_var_* classes for variables that represent the value as a signed or unsigned integer. They are Sys_var_uint, Sys_var_ulong, Sys_var_harows, Sys_var_ulonglong, and Sys_var_long.
An integer variable has a minimal and maximal values, and a "block_size" (any valid value of the variable must be divisible by the block_size).
Class specific constructor arguments: min, max, block_size Backing store: uint, ulong, ha_rows, ulonglong, long, depending on the Sys_var_*
void Sys_var_integer< T, ARGT, SHOWT, SIGNED >::global_save_default | ( | THD * | thd, |
set_var * | var | ||
) | [inline, virtual] |
save the global default value of the variable in var
Implements sys_var.
Reimplemented in Sys_var_session_special.
void Sys_var_integer< T, ARGT, SHOWT, SIGNED >::session_save_default | ( | THD * | thd, |
set_var * | var | ||
) | [inline, virtual] |
save the session default value of the variable in var
Implements sys_var.
Reimplemented in Sys_var_session_special.