24#ifndef SET_VARIABLES_HELPER_H
25#define SET_VARIABLES_HELPER_H
105 bool add_variable(
const char *prefix,
size_t prefix_length,
106 const char *suffix,
size_t suffix_length,
136 const char *suffix,
size_t suffix_length,
137 Item *variable_value);
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
Definition: sql_list.h:467
A helper class to fascilitate executing SET on system variables.
Definition: set_variables_helper.h:72
LEX * m_lex_save
Definition: set_variables_helper.h:75
List< set_var_base > m_sysvar_list
Definition: set_variables_helper.h:73
LEX m_lex_tmp
Definition: set_variables_helper.h:75
bool is_auto_thd()
Definition: set_variables_helper.h:122
THD * m_thd
Definition: set_variables_helper.h:74
bool check_variable_update_type(const char *prefix, size_t prefix_length, const char *suffix, size_t suffix_length, Item *variable_value)
Checks the update type for the system variable and throws error if any found.
Definition: set_variables_helper.cc:69
~Set_variables_helper()
Definition: set_variables_helper.cc:41
THD * get_thd()
Definition: set_variables_helper.h:119
bool execute()
Executes the SET command for all variables added.
Definition: set_variables_helper.cc:64
Set_variables_helper(THD *existing_thd)
Initializes the helper and switches to the canned temp LEX.
Definition: set_variables_helper.cc:28
Storing_auto_THD * m_thd_auto
Definition: set_variables_helper.h:76
bool add_variable(const char *prefix, size_t prefix_length, const char *suffix, size_t suffix_length, Item *variable_value, enum_var_type var_type)
Adds setting one variable instruction.
Definition: set_variables_helper.cc:50
A version of Auto_THD that:
Definition: storing_auto_thd.h:41
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
"public" interface to sys_var - server configuration variables.
enum_var_type
Definition: set_var.h:91
The LEX object currently serves three different purposes:
Definition: sql_lex.h:3823