MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
set_var Class Reference

#include <set_var.h>

Inheritance diagram for set_var:
Collaboration diagram for set_var:

Public Member Functions

 set_var (enum_var_type type_arg, sys_var *var_arg, const LEX_STRING *base_name_arg, Item *value_arg)
int check (THD *thd)
int update (THD *thd)
int light_check (THD *thd)
void print (THD *thd, String *str)
- Public Member Functions inherited from set_var_base
virtual bool is_var_optimizer_trace () const

Public Attributes

sys_varvar
 system variable to be updated
Itemvalue
 the expression that provides the new value of the variable
enum_var_type type
union {
   ulonglong   ulonglong_value
 for all integer, set, enum sysvars
   double   double_value
 for Sys_var_double
   plugin_ref   plugin
 for Sys_var_plugin
   Time_zone *   time_zone
 for Sys_var_tz
   LEX_STRING   string_value
 for Sys_var_charptr and others
   const void *   ptr
 for Sys_var_struct
save_result
LEX_STRING base

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)

Detailed Description

set_var_base descendant for assignments to the system variables.

Definition at line 210 of file set_var.h.

Member Function Documentation

int set_var::check ( THD *  thd)
virtual

Verify that the supplied value is correct.

Parameters
thdThread handler
Returns
status code
Return values
-1Failure
0Success

Implements set_var_base.

Definition at line 595 of file set_var.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

int set_var::light_check ( THD *  thd)
virtual

Check variable, but without assigning value (used by PS).

Parameters
thdthread handler
Return values
0ok
1ERROR, message sent (normally no variables was updated)
-1ERROR, message not sent

Reimplemented from set_var_base.

Definition at line 639 of file set_var.cc.

Here is the call graph for this function:

void set_var::print ( THD *  thd,
String str 
)
virtual

Self-print assignment

Parameters
strstring buffer to append the partial assignment to

Implements set_var_base.

Definition at line 678 of file set_var.cc.

Here is the call graph for this function:

int set_var::update ( THD *  thd)
virtual

Update variable

Parameters
thdthread handler
Returns
0|1 ok or ERROR
Note
ERROR can be only due to abnormal operations involving the server's execution evironment such as out of memory, hard disk failure or the computer blows up. Consider set_var::check() method if there is a need to return an error due to logics.

Implements set_var_base.

Definition at line 668 of file set_var.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

LEX_STRING set_var::base

for structured variables, like keycache_name.variable_name

Definition at line 225 of file set_var.h.


The documentation for this class was generated from the following files: