~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/loader.cc

  • Committer: Brian Aker
  • Date: 2010-02-14 02:02:48 UTC
  • mfrom: (1273.13.64 fix_is)
  • Revision ID: brian@gaz-20100214020248-bhovaejhz9fmer3q
MergeĀ inĀ data_dictionary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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);
149
149
};
150
150
 
1239
1239
}
1240
1240
 
1241
1241
 
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)
1243
1243
{
1244
1244
  assert(session || (type == OPT_GLOBAL));
1245
1245
  if (plugin_var->flags & PLUGIN_VAR_SessionLOCAL)
1265
1265
}
1266
1266
 
1267
1267
 
1268
 
unsigned char* sys_var_pluginvar::value_ptr(Session *session, enum_var_type type, const LEX_STRING *)
 
1268
unsigned char* sys_var_pluginvar::value_ptr(Session *session, sql_var_t type, const LEX_STRING *)
1269
1269
{
1270
1270
  unsigned char* result;
1271
1271
 
1291
1291
}
1292
1292
 
1293
1293
 
1294
 
void sys_var_pluginvar::set_default(Session *session, enum_var_type type)
 
1294
void sys_var_pluginvar::set_default(Session *session, sql_var_t type)
1295
1295
{
1296
1296
  const void *src;
1297
1297
  void *tgt;