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

Function check_collation_db

sql/sys_vars.cc:277–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 ON_UPDATE(fix_thd_charset));
276
277static bool check_collation_db(sys_var *self, THD *thd, set_var *var)
278{
279 if (check_collation_not_null(self, thd, var))
280 return true;
281 if (!var->value) // = DEFAULT
282 var->save_result.ptr= thd->db_charset;
283 return false;
284}
285static Sys_var_struct Sys_collation_database(
286 "collation_database", "The collation of the database "
287 "character set",

Callers

nothing calls this directly

Calls 1

check_collation_not_nullFunction · 0.85

Tested by

no test coverage detected