My Project
Public Member Functions
Sys_var_charptr_func Class Reference

#include <sys_vars.h>

Inheritance diagram for Sys_var_charptr_func:
sys_var Sys_var_gtid_set_func Sys_var_gtid_executed Sys_var_gtid_owned

List of all members.

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)

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines