~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/get_system_var.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-30 12:41:04 UTC
  • mto: This revision was merged to the branch mainline in revision 2456.
  • Revision ID: olafvdspek@gmail.com-20111030124104-5unihy0pvv70thxk
Use union instead of struct for YYSTYPE
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
namespace drizzled {
26
26
 
27
 
Item *get_system_var(Session *session, sql_var_t var_type, lex_string_t name,
28
 
                     lex_string_t component);
 
27
Item* get_system_var(Session*, sql_var_t, str_ref name, str_ref component);
29
28
 
30
29
/* A system variable */
31
30
 
33
32
{
34
33
  sys_var *var;
35
34
  sql_var_t var_type;
36
 
  lex_string_t component;
 
35
  str_ref component;
37
36
 
38
37
public:
39
 
  Item_func_get_system_var(sys_var *var_arg, sql_var_t var_type_arg,
40
 
                           lex_string_t *component_arg, const char *name_arg,
41
 
                           size_t name_len_arg);
 
38
  Item_func_get_system_var(sys_var *var_arg, sql_var_t var_type_arg, str_ref component_arg, const char *name_arg, size_t name_len_arg);
42
39
  bool fix_fields(Session *session, Item **ref);
43
40
  /*
44
41
    Stubs for pure virtual methods. Should never be called: this
52
49
  const char *func_name() const { return "get_system_var"; }
53
50
};
54
51
 
55
 
 
56
52
} /* namespace drizzled */
57
53