MCPcopy Create free account
hub / github.com/MariaDB/server / set_default_system_variable

Method set_default_system_variable

sql/sql_lex.cc:9708–9722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9706
9707
9708bool LEX::set_default_system_variable(enum_var_type var_type,
9709 const Lex_ident_sys_st *name,
9710 Item *val)
9711{
9712 static Lex_ident_sys default_base_name= {STRING_WITH_LEN("default")};
9713 sys_var *var= find_sys_var(thd, name->str, name->length);
9714 if (!var)
9715 return true;
9716 if (unlikely(!var->is_struct()))
9717 {
9718 my_error(ER_VARIABLE_IS_NOT_STRUCT, MYF(0), name->str);
9719 return true;
9720 }
9721 return set_system_variable(var_type, var, &default_base_name, val);
9722}
9723
9724
9725bool LEX::set_system_variable(enum_var_type var_type,

Callers

nothing calls this directly

Calls 3

find_sys_varFunction · 0.85
my_errorFunction · 0.85
is_structMethod · 0.80

Tested by

no test coverage detected