MySQL 9.4.0
Source Code Documentation
anonymous_namespace{sys_vars.cc} Namespace Reference

Warn usage of restrict_fk_on_non_standard_key variable. More...

Classes

struct  Get_csname
 
struct  Get_locale_name
 
struct  Get_name
 

Functions

bool restrict_fk_on_non_standard_key_check (sys_var *self, THD *thd, set_var *setv)
 

Variables

Sys_var_bool Sys_restrict_fk_on_non_standard_key ("restrict_fk_on_non_standard_key", "Disallow the creation of foreign keys referencing non-unique key " "or partial key", NON_PERSIST SESSION_VAR(restrict_fk_on_non_standard_key), CMD_LINE(OPT_ARG), DEFAULT(true), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(restrict_fk_on_non_standard_key_check), ON_UPDATE(nullptr))
 
ulonglong debug_a_global_flagset
 
constexpr const uint64_t DEBUG_A_GLOBAL_FLAGSET_F1 {1ULL << 0}
 
constexpr const uint64_t DEBUG_A_GLOBAL_FLAGSET_F2 {1ULL << 1}
 
constexpr uint64_t DEBUG_A_GLOBAL_FLAGSET_DEFAULT
 
const char * debug_a_global_flagset_names [] = {"f1", "f2", "default", NullS}
 
Sys_var_flagset Sys_debug_a_global_flagset ("debug_a_global_flagset", "Debug variable to test a global persistable flagset variable.", GLOBAL_VAR(debug_a_global_flagset), CMD_LINE(REQUIRED_ARG), debug_a_global_flagset_names, DEFAULT(DEBUG_A_GLOBAL_FLAGSET_DEFAULT), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(nullptr), ON_UPDATE(nullptr))
 

Detailed Description

Warn usage of restrict_fk_on_non_standard_key variable.

When it is set to false, warning should include usage of non std keys may break replication

Function Documentation

◆ restrict_fk_on_non_standard_key_check()

bool anonymous_namespace{sys_vars.cc}::restrict_fk_on_non_standard_key_check ( sys_var self,
THD thd,
set_var setv 
)

Variable Documentation

◆ debug_a_global_flagset

ulonglong anonymous_namespace{sys_vars.cc}::debug_a_global_flagset

◆ DEBUG_A_GLOBAL_FLAGSET_DEFAULT

constexpr uint64_t anonymous_namespace{sys_vars.cc}::DEBUG_A_GLOBAL_FLAGSET_DEFAULT
constexpr
Initial value:
constexpr const uint64_t DEBUG_A_GLOBAL_FLAGSET_F1
Definition: sys_vars.cc:7660
constexpr const uint64_t DEBUG_A_GLOBAL_FLAGSET_F2
Definition: sys_vars.cc:7661

◆ DEBUG_A_GLOBAL_FLAGSET_F1

constexpr const uint64_t anonymous_namespace{sys_vars.cc}::DEBUG_A_GLOBAL_FLAGSET_F1 {1ULL << 0}
constexpr

◆ DEBUG_A_GLOBAL_FLAGSET_F2

constexpr const uint64_t anonymous_namespace{sys_vars.cc}::DEBUG_A_GLOBAL_FLAGSET_F2 {1ULL << 1}
constexpr

◆ debug_a_global_flagset_names

const char* anonymous_namespace{sys_vars.cc}::debug_a_global_flagset_names[] = {"f1", "f2", "default", NullS}

◆ Sys_debug_a_global_flagset

Sys_var_flagset anonymous_namespace{sys_vars.cc}::Sys_debug_a_global_flagset("debug_a_global_flagset", "Debug variable to test a global persistable flagset variable.", GLOBAL_VAR(debug_a_global_flagset), CMD_LINE(REQUIRED_ARG), debug_a_global_flagset_names, DEFAULT(DEBUG_A_GLOBAL_FLAGSET_DEFAULT), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(nullptr), ON_UPDATE(nullptr)) ( "debug_a_global_flagset"  ,
"Debug variable to test a global persistable flagset variable."  ,
GLOBAL_VAR(debug_a_global_flagset ,
CMD_LINE(REQUIRED_ARG ,
debug_a_global_flagset_names  ,
DEFAULT(DEBUG_A_GLOBAL_FLAGSET_DEFAULT ,
NO_MUTEX_GUARD  ,
NOT_IN_BINLOG  ,
ON_CHECK(nullptr ,
ON_UPDATE(nullptr  
)

◆ Sys_restrict_fk_on_non_standard_key

Sys_var_bool anonymous_namespace{sys_vars.cc}::Sys_restrict_fk_on_non_standard_key("restrict_fk_on_non_standard_key", "Disallow the creation of foreign keys referencing non-unique key " "or partial key", NON_PERSIST SESSION_VAR(restrict_fk_on_non_standard_key), CMD_LINE(OPT_ARG), DEFAULT(true), NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(restrict_fk_on_non_standard_key_check), ON_UPDATE(nullptr)) ( "restrict_fk_on_non_standard_key"  ,
"Disallow the creation of foreign keys referencing non-unique key " "or partial key ,
NON_PERSIST   SESSION_VARrestrict_fk_on_non_standard_key,
CMD_LINE(OPT_ARG ,
DEFAULT(true)  ,
NO_MUTEX_GUARD  ,
NOT_IN_BINLOG  ,
ON_CHECK(restrict_fk_on_non_standard_key_check ,
ON_UPDATE(nullptr  
)