![]() |
MySQL 9.4.0
Source Code Documentation
|
set_var_base descendant for assignments to the system variables. More...
#include <set_var.h>
Public Member Functions | |
| set_var (enum_var_type type_arg, const System_variable_tracker &var_arg, Item *value_arg) | |
| int | resolve (THD *thd) override |
| Resolve the variable assignment. More... | |
| int | check (THD *thd) override |
| Verify that the supplied value is correct. More... | |
| int | update (THD *thd) override |
| Update variable. More... | |
| int | light_check (THD *thd) override |
| Check variable, but without assigning value (used by PS). More... | |
| void | print_short (const THD *thd, String *str) |
| Print variable in short form. More... | |
| bool | print (const THD *, String *str) override |
| Self-print assignment. More... | |
| bool | is_global_persist () |
| bool | is_var_optimizer_trace () const override |
| bool | is_sensitive () const override |
| Check if system variable is of type SENSITIVE. More... | |
| void | update_source_user_host_timestamp (THD *thd, sys_var *var) |
| Update variable source, user, host and timestamp values. More... | |
Public Member Functions inherited from set_var_base | |
| set_var_base ()=default | |
| virtual | ~set_var_base ()=default |
| virtual void | cleanup () |
Public Attributes | |
| Item * | value |
| the expression that provides the new value of the variable More... | |
| const enum_var_type | type |
| union { | |
| ulonglong ulonglong_value | |
| for all integer, set, enum sysvars More... | |
| double double_value | |
| for Sys_var_double More... | |
| plugin_ref plugin | |
| for Sys_var_plugin More... | |
| Time_zone * time_zone | |
| for Sys_var_tz More... | |
| LEX_STRING string_value | |
| for Sys_var_charptr and others More... | |
| const void * ptr | |
| for Sys_var_struct More... | |
| } | save_result |
| Resolver of the variable at the left hand side of the assignment. More... | |
| const System_variable_tracker | m_var_tracker |
set_var_base descendant for assignments to the system variables.
|
inline |
|
overridevirtual |
Verify that the supplied value is correct.
| thd | Thread handler |
| -1 | Failure |
| 0 | Success |
Implements set_var_base.
|
inline |
|
overridevirtual |
Check if system variable is of type SENSITIVE.
Reimplemented from set_var_base.
|
inlineoverridevirtual |
Reimplemented from set_var_base.
|
overridevirtual |
Check variable, but without assigning value (used by PS).
| thd | thread handler |
| 0 | ok |
| 1 | ERROR, message sent (normally no variables was updated) |
| -1 | ERROR, message not sent |
Reimplemented from set_var_base.
Self-print assignment.
| thd | Thread handle |
| str | String buffer to append the partial assignment to. |
Implements set_var_base.
Print variable in short form.
| thd | Thread handle. |
| str | String buffer to append the partial assignment to. |
|
overridevirtual |
Resolve the variable assignment.
| thd | Thread handler |
| -1 | Failure |
| 0 | Success |
Implements set_var_base.
|
overridevirtual |
Update variable.
| thd | thread handler |
Implements set_var_base.
Update variable source, user, host and timestamp values.
| double set_var::double_value |
for Sys_var_double
| const System_variable_tracker set_var::m_var_tracker |
| plugin_ref set_var::plugin |
for Sys_var_plugin
| const void* set_var::ptr |
for Sys_var_struct
| union { ... } set_var::save_result |
Resolver of the variable at the left hand side of the assignment.
| LEX_STRING set_var::string_value |
for Sys_var_charptr and others
| Time_zone* set_var::time_zone |
for Sys_var_tz
| const enum_var_type set_var::type |
| ulonglong set_var::ulonglong_value |
for all integer, set, enum sysvars
| Item* set_var::value |
the expression that provides the new value of the variable