MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / check_charset_db

Function check_charset_db

sql/sys_vars.cc:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 NO_MUTEX_GUARD, IN_BINLOG, ON_CHECK(check_charset_not_null));
166
167static bool check_charset_db(sys_var *self, THD *thd, set_var *var)
168{
169 if (check_charset_not_null(self, thd, var))
170 return true;
171 if (!var->value) // = DEFAULT
172 var->save_result.ptr= thd->db_charset;
173 return false;
174}
175static Sys_var_struct Sys_character_set_database(
176 "character_set_database",
177 " The character set used by the default database",

Callers

nothing calls this directly

Calls 1

check_charset_not_nullFunction · 0.85

Tested by

no test coverage detected