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

Function check_cs_client

sql/sys_vars.cc:182–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 NO_MUTEX_GUARD, IN_BINLOG, ON_CHECK(check_charset_db));
181
182static bool check_cs_client(sys_var *self, THD *thd, set_var *var)
183{
184 if (check_charset_not_null(self, thd, var))
185 return true;
186
187 // Currently, UCS-2 cannot be used as a client character set
188 if (((CHARSET_INFO *)(var->save_result.ptr))->mbminlen > 1)
189 return true;
190
191 return false;
192}
193static bool fix_thd_charset(sys_var *self, THD *thd, enum_var_type type)
194{
195 if (type == OPT_SESSION)

Callers

nothing calls this directly

Calls 1

check_charset_not_nullFunction · 0.85

Tested by

no test coverage detected