133
133
:sys_var(name_arg), plugin_var(plugin_var_arg) {}
134
134
sys_var_pluginvar *cast_pluginvar() { return this; }
135
135
bool is_readonly() const { return plugin_var->flags & PLUGIN_VAR_READONLY; }
136
bool check_type(enum_var_type type)
136
bool check_type(sql_var_t type)
137
137
{ return !(plugin_var->flags & PLUGIN_VAR_SessionLOCAL) && type != OPT_GLOBAL; }
138
138
bool check_update_type(Item_result type);
139
139
SHOW_TYPE show_type();
140
unsigned char* real_value_ptr(Session *session, enum_var_type type);
140
unsigned char* real_value_ptr(Session *session, sql_var_t type);
141
141
TYPELIB* plugin_var_typelib(void);
142
unsigned char* value_ptr(Session *session, enum_var_type type,
142
unsigned char* value_ptr(Session *session, sql_var_t type,
143
143
const LEX_STRING *base);
144
144
bool check(Session *session, set_var *var);
145
bool check_default(enum_var_type)
145
bool check_default(sql_var_t)
146
146
{ return is_readonly(); }
147
void set_default(Session *session, enum_var_type);
147
void set_default(Session *session, sql_var_t);
148
148
bool update(Session *session, set_var *var);
1242
unsigned char* sys_var_pluginvar::real_value_ptr(Session *session, enum_var_type type)
1242
unsigned char* sys_var_pluginvar::real_value_ptr(Session *session, sql_var_t type)
1244
1244
assert(session || (type == OPT_GLOBAL));
1245
1245
if (plugin_var->flags & PLUGIN_VAR_SessionLOCAL)