~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.h

  • Committer: Monty Taylor
  • Date: 2009-05-29 01:19:26 UTC
  • mto: This revision was merged to the branch mainline in revision 1044.
  • Revision ID: mordred@inaugust.com-20090529011926-usge2d0gcqq8fgs6
Moved more tolower calls to setup rather than during runtime.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
typedef void (*sys_set_default_func)(Session *, enum_var_type);
51
51
typedef unsigned char *(*sys_value_ptr_func)(Session *session);
52
52
 
 
53
static const std::vector<std::string> empty_aliases;
 
54
 
 
55
 
53
56
struct sys_var_chain
54
57
{
55
58
  sys_var *first;
78
81
      chain_arg->first= this;
79
82
    chain_arg->last= this;
80
83
  }
 
84
 
 
85
/* So that we can exist in a Registry. We really need to formalize that */
 
86
  std::string getName() const { return name; }
 
87
  const std::vector<std::string>& getAliases() const { return empty_aliases; }
 
88
 
81
89
  virtual bool check(Session *session, set_var *var);
82
90
  bool check_enum(Session *session, set_var *var, const TYPELIB *enum_names);
83
91
  bool check_set(Session *session, set_var *var, TYPELIB *enum_names);