MySQL 8.4.2
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))
 

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

◆ 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  
)