1#ifndef SET_VAR_INCLUDED
2#define SET_VAR_INCLUDED
69template <
class Key,
class Value>
192 int flag_args, ptrdiff_t off,
int getopt_id,
197 const char *substitute,
int parse_flag,
198 sys_var *persisted_alias =
nullptr,
199 bool is_persisted_deprecated =
false);
216 std::string_view keycache_name);
218 std::string_view keycache_name);
312 switch (query_type) {
336 (array->push_back(
option),
false);
368 if (dst ==
string)
return false;
369 size_t string_length = strlen(
string),
length;
370 length = std::min(sizeof_dst - 1, string_length);
371 memcpy(dst,
string,
length);
373 return length < string_length;
396 std::string_view keycache_name);
398 std::string_view keycache_name);
588 std::string_view variable_name);
621 std::string_view suffix);
681 : std::string_view{};
818 template <
typename T>
834 force_sensitive_variable_access,
835 is_already_locked, is_single_thread)
837 : std::optional<T>{
result};
842 return m_cache.value().m_cached_show_type;
847 return m_cache.value().m_cached_is_sensitive;
858 bool strict,
Array *output);
1042 char *current_password_arg,
bool retain_current,
1131#define PERSIST_ONLY_ADMIN_X509_SUBJECT "persist_only_admin_x509_subject"
1132#define PERSISTED_GLOBALS_LOAD "persisted_globals_load"
This class is used to implement operations like SET @variable or @variable:= expression.
Definition: item_func.h:3155
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:853
Definition: sql_list.h:434
wrapper to hide a mutex and an rwlock under a common interface
Definition: sys_vars_shared.h:52
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:168
A sys_var that is an alias for another sys_var.
Definition: sys_vars.h:352
Wrapper interface for all kinds of system variables.
Definition: set_var.h:574
Lifetime lifetime() const
Definition: set_var.h:634
System_variable_tracker(Static, sys_var *var)
Definition: set_var.cc:633
struct System_variable_tracker::@155::@158 m_keycache
static thread_local int m_hash_lock_recursion_depth
A non-zero value suppresses LOCK_system_variables_hash guards in System_variable_tracker::access_syst...
Definition: set_var.h:904
sys_var * get_stable_var() const
Definition: set_var.h:868
char m_keycache_var_name[NAME_LEN+sizeof(".key_cache_division_limit")]
A dot-separated key cache name or, for a reduced form of key cache variable names,...
Definition: set_var.h:915
sys_var * m_static_var
Definition: set_var.h:908
std::string_view get_keycache_name() const
Definition: set_var.h:678
Lifetime m_tag
Definition: set_var.h:892
void operator=(System_variable_tracker &&)
Definition: set_var.cc:740
SHOW_TYPE cached_show_type() const
Definition: set_var.h:840
static bool enumerate_sys_vars_in_hash(collation_unordered_map< std::string, sys_var * > *hash, enum enum_var_type query_scope, bool strict, System_variable_tracker::Array *output)
Definition: set_var.cc:1028
static System_variable_tracker make_tracker(std::string_view prefix, std::string_view suffix)
Static "constructor".
Definition: set_var.cc:849
sys_var * m_plugin_var_cache
Definition: set_var.h:923
sys_var * m_component_var_cache
Definition: set_var.h:929
Lifetime
Definition: set_var.h:591
@ KEYCACHE
for MyISAM Multiple Key Cache variables
Definition: set_var.h:593
@ PLUGIN
for plugin-registered system variables
Definition: set_var.h:594
@ STATIC
for regular static variables
Definition: set_var.h:592
@ COMPONENT
for component-registered variables
Definition: set_var.h:595
struct System_variable_tracker::@155::@159 m_plugin
bool eq_static_sys_var(const sys_var *var) const
Definition: set_var.h:657
bool visit_component_variable(THD *, std::function< bool(sys_var *)>, Suppress_not_found_error, Is_already_locked, Is_single_thread) const
Definition: set_var.cc:1241
bool access_system_variable(THD *thd, std::function< void(const System_variable_tracker &, sys_var *)> function={}, Suppress_not_found_error suppress_not_found_error=Suppress_not_found_error::NO, Force_sensitive_system_variable_access force_sensitive_variable_access=Force_sensitive_system_variable_access::NO, Is_already_locked is_already_locked=Is_already_locked::NO, Is_single_thread is_single_thread=Is_single_thread::NO) const
Definition: set_var.cc:761
static bool enumerate_sys_vars(bool sort, enum enum_var_type type, bool strict, Array *output)
Constructs an array of system variables for display to the user.
Definition: set_var.cc:1111
struct System_variable_tracker::@155::@160 m_component
struct System_variable_tracker::@155::@157 m_static
void cache_metadata(THD *thd, sys_var *v) const
Definition: set_var.cc:1284
std::optional< Cache > m_cache
Definition: set_var.h:898
char m_plugin_var_name[NAME_LEN+1]
A "_"-separated plugin-registered variables name.
Definition: set_var.h:922
Prealloced_array< System_variable_tracker, SYSTEM_VARIABLE_PREALLOC > Array
Definition: set_var.h:854
const char * get_var_name() const
Definition: set_var.cc:747
~System_variable_tracker()
Definition: set_var.cc:723
bool is_hint_updateable() const
Definition: set_var.h:688
sys_var * m_keycache_var
Definition: set_var.h:917
bool cached_is_sensitive() const
Definition: set_var.h:845
bool is_keycache_var() const
Definition: set_var.h:655
size_t m_keycache_name_size
Definition: set_var.h:916
bool operator==(const System_variable_tracker &x) const
Definition: set_var.h:636
static bool names_are_same(const char *, const char *)
Definition: set_var.cc:845
char m_component_var_name[NAME_LEN+sizeof('.')+NAME_LEN+1]
A dot-separated component-registered variable name.
Definition: set_var.h:928
friend Array
Definition: set_var.h:855
std::optional< T > access_system_variable(THD *thd, std::function< T(const System_variable_tracker &, sys_var *)> function, Suppress_not_found_error suppress_not_found_error=Suppress_not_found_error::NO, Force_sensitive_system_variable_access force_sensitive_variable_access=Force_sensitive_system_variable_access::NO, Is_already_locked is_already_locked=Is_already_locked::NO, Is_single_thread is_single_thread=Is_single_thread::NO) const
Safely pass a sys_var object to a function.
Definition: set_var.h:819
bool visit_plugin_variable(THD *, std::function< bool(sys_var *)>, Suppress_not_found_error, Is_already_locked, Is_single_thread) const
Definition: set_var.cc:1138
static constexpr size_t SYSTEM_VARIABLE_PREALLOC
Number of system variable elements to preallocate.
Definition: set_var.h:851
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:49
std::unordered_map, but with my_malloc and collation-aware comparison.
Definition: map_helpers.h:210
A base class for everything that can be set with SET command.
Definition: set_var.h:943
virtual ~set_var_base()=default
virtual int check(THD *thd)=0
Evaluate the expression.
virtual int light_check(THD *thd)
Used only by prepared statements to resolve and check.
Definition: set_var.h:962
virtual bool is_sensitive() const
Used to identify if variable is sensitive or not.
Definition: set_var.h:965
virtual void cleanup()
Definition: set_var.h:956
virtual int resolve(THD *thd)=0
Check privileges & fix_fields.
virtual bool print(const THD *thd, String *str)=0
To self-print.
virtual int update(THD *thd)=0
Set the value.
virtual bool is_var_optimizer_trace() const
Definition: set_var.h:955
Definition: set_var.h:1057
set_cs_flags_enum
Definition: set_var.h:1064
@ SET_CS_DEFAULT
Definition: set_var.h:1066
@ SET_CS_NAMES
Definition: set_var.h:1065
@ SET_CS_COLLATE
Definition: set_var.h:1067
const CHARSET_INFO * character_set_client
Definition: set_var.h:1059
const CHARSET_INFO * character_set_results
Definition: set_var.h:1060
const CHARSET_INFO * collation_connection
Definition: set_var.h:1061
set_var_collation_client(int set_cs_flags_arg, const CHARSET_INFO *client_coll_arg, const CHARSET_INFO *connection_coll_arg, const CHARSET_INFO *result_coll_arg)
Definition: set_var.h:1069
bool print(const THD *thd, String *str) override
To self-print.
Definition: set_var.cc:2039
int update(THD *thd) override
Set the value.
Definition: set_var.cc:2012
int set_cs_flags
Definition: set_var.h:1058
int resolve(THD *) override
Check privileges & fix_fields.
Definition: set_var.h:1077
int check(THD *thd) override
Evaluate the expression.
Definition: set_var.cc:2002
Definition: set_var.h:1032
LEX_USER * user
Definition: set_var.h:1033
char * str_generated_password
Definition: set_var.h:1038
int check(THD *thd) override
Check the validity of the SET PASSWORD request.
Definition: set_var.cc:1945
set_var_password(LEX_USER *user_arg, char *password_arg, char *current_password_arg, bool retain_current, bool generate_password)
Definition: set_var.cc:1915
bool print(const THD *thd, String *str) override
To self-print.
Definition: set_var.cc:1977
bool retain_current_password
Definition: set_var.h:1036
bool has_generated_password(void)
Definition: set_var.h:1046
int resolve(THD *) override
Check privileges & fix_fields.
Definition: set_var.h:1048
const LEX_USER * get_user(void)
Definition: set_var.h:1045
const char * get_generated_password(void)
Definition: set_var.h:1047
char * password
Definition: set_var.h:1034
int update(THD *thd) override
Set the value.
Definition: set_var.cc:1953
bool generate_password
Definition: set_var.h:1037
~set_var_password() override
Definition: set_var.cc:1931
const char * current_password
Definition: set_var.h:1035
Definition: set_var.h:1020
int check(THD *thd) override
Evaluate the expression.
Definition: set_var.cc:1865
int update(THD *thd) override
Set the value.
Definition: set_var.cc:1893
set_var_user(Item_func_set_user_var *item)
Definition: set_var.h:1024
int resolve(THD *thd) override
Check privileges & fix_fields.
Definition: set_var.cc:1856
Item_func_set_user_var * user_var_item
Definition: set_var.h:1021
bool print(const THD *thd, String *str) override
To self-print.
Definition: set_var.cc:1906
int light_check(THD *thd) override
Check variable, but without assigning value (used by PS).
Definition: set_var.cc:1885
set_var_base descendant for assignments to the system variables.
Definition: set_var.h:971
ulonglong ulonglong_value
for all integer, set, enum sysvars
Definition: set_var.h:977
int resolve(THD *thd) override
Resolve the variable assignment.
Definition: set_var.cc:1578
set_var(enum_var_type type_arg, const System_variable_tracker &var_arg, Item *value_arg)
Definition: set_var.h:989
int update(THD *thd) override
Update variable.
Definition: set_var.cc:1772
const enum_var_type type
Definition: set_var.h:974
const System_variable_tracker m_var_tracker
Definition: set_var.h:986
void update_source_user_host_timestamp(THD *thd, sys_var *var)
Update variable source, user, host and timestamp values.
Definition: set_var.cc:1753
bool is_global_persist()
Definition: set_var.h:1005
Time_zone * time_zone
for Sys_var_tz
Definition: set_var.h:980
int light_check(THD *thd) override
Check variable, but without assigning value (used by PS).
Definition: set_var.cc:1703
union set_var::@161 save_result
Resolver of the variable at the left hand side of the assignment.
Item * value
the expression that provides the new value of the variable
Definition: set_var.h:973
int check(THD *thd) override
Verify that the supplied value is correct.
Definition: set_var.cc:1660
LEX_STRING string_value
for Sys_var_charptr and others
Definition: set_var.h:981
bool is_sensitive() const override
Check if system variable is of type SENSITIVE.
Definition: set_var.cc:1848
bool print(const THD *, String *str) override
Self-print assignment.
Definition: set_var.cc:1821
bool is_var_optimizer_trace() const override
Definition: set_var.h:1009
plugin_ref plugin
for Sys_var_plugin
Definition: set_var.h:979
void print_short(const THD *thd, String *str)
Print variable in short form.
Definition: set_var.cc:1800
const void * ptr
for Sys_var_struct
Definition: set_var.h:982
double double_value
for Sys_var_double
Definition: set_var.h:978
Definition: sql_plugin_var.h:196
A class representing one system variable - that is something that can be accessed as @global....
Definition: set_var.h:105
static const int PARSE_EARLY
Definition: set_var.h:153
virtual bool global_update(THD *thd, set_var *var)=0
bool is_hint_updateable() const
Check if the variable can be set using SET_VAR hint.
Definition: set_var.h:287
virtual bool set_source_name(const char *path)
Definition: set_var.h:238
my_option option
min, max, default values are stored here
Definition: set_var.h:173
my_option * get_option()
Definition: set_var.h:252
bool(* on_update_function)(sys_var *self, THD *thd, enum_var_type type)
Definition: set_var.h:167
virtual void session_save_default(THD *thd, set_var *var)=0
save the session default value of the variable in var
LEX_CSTRING name
Definition: set_var.h:108
virtual void set_arg_source(get_opt_arg_source *)
Definition: set_var.h:231
sys_var * next
Definition: set_var.h:107
char host[HOSTNAME_LENGTH+1]
Definition: set_var.h:187
virtual const char * get_host()
Definition: set_var.h:246
virtual ulonglong get_max_value()
Definition: set_var.h:224
virtual void set_user_host(THD *thd)
Definition: set_var.cc:454
uchar * global_var_ptr()
Definition: set_var.cc:401
bool m_is_persisted_deprecated
If m_persist_alias is set, and the current variable is deprecated and m_persist_alias is the recommen...
Definition: set_var.h:125
bool is_sensitive() const
Definition: set_var.h:280
bool check(THD *thd, set_var *var)
Definition: set_var.cc:405
enum sys_var::binlog_status_enum binlog_status
uchar * session_var_ptr(THD *thd)
A pointer to a storage area of the variable, to the raw data.
Definition: set_var.cc:397
void save_default(THD *thd, set_var *var)
Definition: set_var.h:349
bool register_option(std::vector< my_option > *array, int parse_flags)
Definition: set_var.h:334
flag_enum
Definition: set_var.h:126
@ SESSION
Definition: set_var.h:128
@ GLOBAL
Definition: set_var.h:127
@ INVISIBLE
Definition: set_var.h:133
@ SENSITIVE
Sensitive variable.
Definition: set_var.h:151
@ READONLY
Definition: set_var.h:131
@ SCOPE_MASK
Definition: set_var.h:130
@ ALLOCATED
Definition: set_var.h:132
@ NOTPERSIST
Definition: set_var.h:135
@ TRI_LEVEL
Definition: set_var.h:134
@ PERSIST_AS_READ_ONLY
There can be some variables which needs to be set before plugin is loaded.
Definition: set_var.h:146
@ HINT_UPDATEABLE
Definition: set_var.h:136
@ ONLY_SESSION
Definition: set_var.h:129
virtual bool do_check(THD *thd, set_var *var)=0
sys_var * m_persisted_alias
If the variable has an alias in the persisted variables file, this should point to it.
Definition: set_var.h:117
bool is_global_persist(enum_var_type type)
Definition: set_var.h:324
virtual bool check_update_type(Item_result type)=0
virtual void set_timestamp(ulonglong ts)
Definition: set_var.h:254
const uchar * value_ptr(THD *running_thd, THD *target_thd, enum_var_type type, std::string_view keycache_name)
Definition: set_var.cc:427
virtual const char * get_user()
Definition: set_var.h:245
virtual void cleanup()
All the cleanup procedures should be performed here.
Definition: set_var.h:207
virtual longlong get_min_value()
Definition: set_var.h:223
virtual ~sys_var()=default
virtual void set_is_plugin(bool)
Definition: set_var.h:232
binlog_status_enum
Enumeration type to indicate for a system variable whether it will be written to the binlog or not.
Definition: set_var.h:159
@ SESSION_VARIABLE_IN_BINLOG
Definition: set_var.h:161
@ VARIABLE_NOT_IN_BINLOG
Definition: set_var.h:160
virtual void saved_value_to_string(THD *thd, set_var *var, char *def_val)=0
This function converts value stored in save_result to string.
bool is_os_charset
true if the value is in character_set_filesystem
Definition: set_var.h:184
bool is_parse_early() const
Definition: set_var.h:279
ptrdiff_t offset
offset to the value from global_system_variables
Definition: set_var.h:175
virtual bool set_user(const char *usr)
Definition: set_var.h:242
bool check_scope(enum_var_type query_type)
Return true for success if: Global query and variable scope is GLOBAL or SESSION, or Session query an...
Definition: set_var.h:311
bool(* on_check_function)(sys_var *self, THD *thd, set_var *var)
Definition: set_var.h:165
virtual enum_variable_source get_source()
Definition: set_var.h:233
SHOW_TYPE show_type()
Definition: set_var.h:272
virtual void global_save_default(THD *thd, set_var *var)=0
save the global default value of the variable in var
virtual const uchar * global_value_ptr(THD *thd, std::string_view keycache_name)
Definition: set_var.cc:393
const char * get_deprecation_substitute()
Definition: set_var.h:203
on_check_function on_check
Definition: set_var.h:176
const CHARSET_INFO * charset(THD *thd)
Definition: set_var.cc:589
virtual ulong get_var_type()
Returns variable type.
Definition: set_var.h:230
bool is_struct()
the following is only true for keycache variables, that support the syntax @keycache_name....
Definition: set_var.h:292
virtual const char * get_source_name()
Definition: set_var.h:234
bool set_default(THD *thd, set_var *var)
Update the system variable with the default value from either session or global scope.
Definition: set_var.cc:443
pre_update_function pre_update
Pointer to function to be invoked before updating system variable (but after calling on_check hook),...
Definition: set_var.h:181
bool is_trilevel() const
Definition: set_var.h:277
bool is_persist_readonly() const
Definition: set_var.h:278
void do_deprecated_warning(THD *thd)
Definition: set_var.cc:477
int scope() const
Definition: set_var.h:273
struct get_opt_arg_source source
Definition: set_var.h:185
virtual void set_timestamp()
Definition: set_var.h:253
const SHOW_TYPE show_val_type
what value_ptr() returns for sql_show.cc
Definition: set_var.h:172
on_update_function on_update
Definition: set_var.h:182
int flags
or'ed flag_enum values
Definition: set_var.h:170
static const int PARSE_NORMAL
Definition: set_var.h:154
bool update(THD *thd, set_var *var)
Definition: set_var.cc:337
char user[USERNAME_CHAR_LENGTH+1]
Definition: set_var.h:186
bool is_written_to_binlog(enum_var_type type)
Definition: set_var.h:301
virtual const uchar * session_value_ptr(THD *running_thd, THD *target_thd, std::string_view keycache_name)
A pointer to a value of the variable for SHOW.
Definition: set_var.cc:388
bool check_if_sensitive_in_context(THD *, bool suppress_errors=true) const
Definition: set_var.cc:1361
virtual void update_default(longlong new_def_value)
Definition: set_var.h:219
virtual bool set_host(const char *hst)
Definition: set_var.h:247
bool not_visible() const
Definition: set_var.h:276
bool is_settable_at_command_line()
Return true if settable at the command line.
Definition: set_var.h:332
PolyLock * guard
second lock that protects the variable
Definition: set_var.h:174
virtual longlong get_default()
Definition: set_var.h:222
virtual bool is_non_persistent()
Definition: set_var.h:255
virtual sys_var_pluginvar * cast_pluginvar()
downcast for sys_var_pluginvar.
Definition: set_var.h:212
Item * copy_value(THD *thd)
Create item from system variable value.
Definition: set_var.cc:498
const char *const deprecation_substitute
Definition: set_var.h:183
virtual ulonglong get_timestamp() const
Definition: set_var.h:250
static bool set_and_truncate(char *dst, const char *string, size_t sizeof_dst)
Like strncpy, but ensures the destination is '\0'-terminated.
Definition: set_var.h:366
bool(* pre_update_function)(sys_var *self, THD *thd, set_var *var)
Definition: set_var.h:166
bool is_readonly() const
Definition: set_var.h:275
virtual bool session_update(THD *thd, set_var *var)=0
int m_parse_flag
either PARSE_EARLY or PARSE_NORMAL.
Definition: set_var.h:171
ulonglong timestamp
Definition: set_var.h:188
sys_var(sys_var_chain *chain, const char *name_arg, const char *comment, int flag_args, ptrdiff_t off, int getopt_id, enum get_opt_arg_type getopt_arg_type, SHOW_TYPE show_val_type_arg, longlong def_val, PolyLock *lock, enum binlog_status_enum binlog_status_arg, on_check_function on_check_func, on_update_function on_update_func, const char *substitute, int parse_flag, sys_var *persisted_alias=nullptr, bool is_persisted_deprecated=false)
sys_var constructor
Definition: set_var.cc:268
virtual void set_source(enum_variable_source src)
Definition: set_var.h:235
ulonglong sql_mode_t
Definition: dd_event.h:37
#define comment
Definition: lexyy.cc:959
static int opened
Definition: log_filter_dragnet.cc:123
A better implementation of the UNIX ctype(3) library.
void my_abort()
Calls our own implementation of abort, if specified, or std's abort().
Definition: my_init.cc:258
get_opt_arg_type
Enumeration of the my_option::arg_type attributes.
Definition: my_getopt.h:81
#define GET_TYPE_MASK
Definition: my_getopt.h:72
#define GET_ASK_ADDR
Definition: my_getopt.h:71
Common definition used by mysys, performance schema and server & client.
static constexpr int HOSTNAME_LENGTH
Definition: my_hostname.h:43
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
unsigned char uchar
Definition: my_inttypes.h:52
long long int longlong
Definition: my_inttypes.h:55
Common header for many mysys elements.
Defines for getting and processing the current system type programmatically.
unsigned long long int my_micro_time()
Return time in microseconds.
Definition: my_systime.h:182
Common definition between mysql server & client.
#define NAME_LEN
Definition: mysql_com.h:67
#define USERNAME_CHAR_LENGTH
Definition: mysql_com.h:64
static char * path
Definition: mysqldump.cc:137
static const char * sql_mode
Definition: mysqlslap.cc:197
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1052
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Provides atomic access in shared-exclusive modes.
Definition: shared_spin_lock.h:79
struct result result
Definition: result.h:34
repeated Source source
Definition: replication_asynchronous_connection_failover.proto:42
required string type
Definition: replication_group_member_actions.proto:34
ulonglong dynamic_system_variable_hash_version
Definition: set_var.cc:89
int sys_var_init()
Definition: set_var.cc:140
sys_var * Sys_gtid_purged_ptr
Definition: sys_vars.cc:6772
enum enum_mysql_show_type SHOW_TYPE
Definition: set_var.h:73
SHOW_COMP_OPTION have_rtree_keys
Definition: set_var.h:1088
ulonglong sql_mode_t
Definition: set_var.h:70
char * sys_var_persist_only_admin_x509_subject
global X509 subject name to require from the client session to allow SET PERSIST[_ONLY] on sys_var::N...
Definition: set_var.cc:1507
Force_sensitive_system_variable_access
Definition: set_var.h:414
collation_unordered_map< std::string, sys_var * > * get_dynamic_system_variable_hash(void)
Definition: set_var.cc:95
collation_unordered_map< std::string, sys_var * > * get_static_system_variable_hash(void)
Definition: set_var.cc:91
SHOW_COMP_OPTION have_profiling
Definition: mysqld.cc:1555
bool fix_delay_key_write(sys_var *self, THD *thd, enum_var_type type)
Definition: sys_vars.cc:2088
bool get_sysvar_source(const char *name, uint length, enum enum_variable_source *source)
Get source of a given system variable given its name and name length.
Definition: set_var.cc:107
enum enum_mysql_show_scope SHOW_SCOPE
Definition: set_var.h:74
Is_single_thread
Definition: set_var.h:418
SHOW_COMP_OPTION have_compress
Definition: mysqld.cc:1554
sys_var * Sys_gtid_next_ptr
Definition: sys_vars.cc:6673
ulong get_system_variable_count(void)
Definition: set_var.cc:1015
SHOW_COMP_OPTION have_symlink
Definition: mysqld.cc:1552
SHOW_COMP_OPTION have_statement_timeout
Definition: mysqld.cc:1556
bool add_static_system_variable_chain(sys_var *chain)
Add variables to the hash of static system variables.
Definition: set_var.cc:978
bool sql_mode_string_representation(THD *thd, sql_mode_t sql_mode, LEX_STRING *ls)
Definition: sys_vars.cc:5002
bool add_dynamic_system_variable_chain(sys_var *chain)
Add variables to the dynamic hash of system variables.
Definition: set_var.cc:952
Is_already_locked
Definition: set_var.h:416
void delete_dynamic_system_variable_chain(sys_var *chain)
Remove variables from the dynamic hash of system variables.
Definition: set_var.cc:1003
bool keyring_access_test()
This function is used to check if key management UDFs like keying_key_generate/store/remove should pr...
Definition: set_var.cc:1489
SHOW_COMP_OPTION have_geometry
Definition: mysqld.cc:1553
bool sql_mode_quoted_string_representation(THD *thd, sql_mode_t sql_mode, LEX_STRING *ls)
Definition: sys_vars.cc:5007
sys_var * Sys_autocommit_ptr
Definition: sys_vars.cc:5476
int sql_set_variables(THD *thd, List< set_var_base > *var_list, bool opened)
Execute update of all variables.
Definition: set_var.cc:1413
Suppress_not_found_error
Definition: set_var.h:412
ulonglong get_dynamic_system_variable_hash_version(void)
Definition: set_var.cc:1024
TYPELIB bool_typelib
Definition: sys_vars.cc:215
void sys_var_end(void)
Definition: set_var.cc:179
const CHARSET_INFO * get_old_charset_by_name(const char *old_name)
Definition: set_var.cc:926
int sys_var_add_options(std::vector< my_option > *long_options, int parse_flags)
Definition: set_var.cc:165
enum_var_type
Definition: set_var.h:90
@ OPT_PERSIST_ONLY
Definition: set_var.h:95
@ OPT_PERSIST
Definition: set_var.h:94
@ OPT_GLOBAL
Definition: set_var.h:93
@ OPT_DEFAULT
Definition: set_var.h:91
@ OPT_SESSION
Definition: set_var.h:92
sql_mode_t expand_sql_mode(sql_mode_t sql_mode, THD *thd)
Definition: sys_vars.cc:4894
bool check_priv(THD *thd, bool static_variable)
This function will check for necessary privileges needed to perform RESET PERSIST or SET PERSIST[_ONL...
Definition: set_var.cc:203
SHOW_COMP_OPTION have_query_cache
Definition: mysqld.cc:1552
SHOW_COMP_OPTION have_dlopen
Definition: set_var.h:1086
sys_var * Sys_gtid_next_list_ptr
File containing constants that can be used throughout the server.
SHOW_COMP_OPTION
Definition: sql_const.h:228
case opt name
Definition: sslopt-case.h:33
enum_mysql_show_type
Declarations for SHOW STATUS support in plugins.
Definition: status_var.h:30
enum_mysql_show_scope
Status variable scope.
Definition: status_var.h:68
Definition: m_ctype.h:385
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
Definition: set_var.h:894
bool m_cached_is_sensitive
Definition: set_var.h:896
SHOW_TYPE m_cached_show_type
Definition: set_var.h:895
Definition: set_var.h:578
Definition: set_var.h:576
Definition: set_var.h:577
Definition: set_var.h:575
Definition: my_getopt.h:83
char m_path_name[FN_REFLEN]
config file path OR compiled default values
Definition: my_getopt.h:87
enum enum_variable_source m_source
Definition: my_getopt.h:88
Definition: my_getopt.h:93
longlong min_value
Min allowed value (for numbers)
Definition: my_getopt.h:123
ulonglong max_value
Max allowed value (for numbers)
Definition: my_getopt.h:124
longlong def_value
Default value.
Definition: my_getopt.h:122
ulong var_type
GET_BOOL, GET_ULL, etc.
Definition: my_getopt.h:120
int id
For 0<id<=255 it's means one character for a short option (like -A), if >255 no short option is creat...
Definition: my_getopt.h:98
struct get_opt_arg_source * arg_source
Represents source/path from where this variable is set.
Definition: my_getopt.h:125
Definition: sql_plugin_ref.h:45
sys_var * first
Definition: set_var.h:81
sys_var * last
Definition: set_var.h:82
export sys_var * Sys_optimizer_trace_ptr
Definition: sys_vars.cc:3541
enum_variable_source
This enum values define how system variables are set.
Definition: system_variable_source_type.h:33
unsigned int uint
Definition: uca9-dump.cc:75
Item_result
Type of the user defined function return slot and arguments.
Definition: udf_registration_types.h:39