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

Method session_value_ptr

sql/sys_vars.h:1145–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143 bool check_update_type(Item_result type)
1144 { return type != STRING_RESULT; }
1145 uchar *session_value_ptr(THD *thd, LEX_STRING *base)
1146 {
1147 plugin_ref plugin= session_var(thd, plugin_ref);
1148 return (uchar*)(plugin ? thd->strmake(plugin_name(plugin)->str,
1149 plugin_name(plugin)->length) : 0);
1150 }
1151 uchar *global_value_ptr(THD *thd, LEX_STRING *base)
1152 {
1153 plugin_ref plugin= global_var(plugin_ref);

Callers

nothing calls this directly

Calls 1

strmakeMethod · 0.80

Tested by

no test coverage detected