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

Method session_value_ptr

sql/sys_vars.h:1074–1078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072 void global_save_default(THD *thd, set_var *var)
1073 { var->save_result.ulonglong_value= option.def_value; }
1074 uchar *session_value_ptr(THD *thd, LEX_STRING *base)
1075 {
1076 return (uchar*)set_to_string(thd, 0, session_var(thd, ulonglong),
1077 typelib.type_names);
1078 }
1079 uchar *global_value_ptr(THD *thd, LEX_STRING *base)
1080 {
1081 return (uchar*)set_to_string(thd, 0, global_var(ulonglong),

Callers

nothing calls this directly

Calls 1

set_to_stringFunction · 0.85

Tested by

no test coverage detected