~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/set_user_var.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-18 12:15:09 UTC
  • mto: This revision was merged to the branch mainline in revision 2443.
  • Revision ID: olafvdspek@gmail.com-20111018121509-e1n40yvkevkwswxb
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
/* Handling of user definable variables */
27
27
 
28
 
class Item_func_set_user_var :public Item_func
 
28
class Item_func_set_user_var : public Item_func
29
29
{
30
30
  enum Item_result cached_result_type;
31
31
  user_var_entry *entry;
42
42
  } save_result;
43
43
 
44
44
public:
45
 
  lex_string_t name; // keep it public
46
 
  Item_func_set_user_var(lex_string_t a,Item *b)
47
 
    :Item_func(b), cached_result_type(INT_RESULT), name(a)
 
45
  str_ref name; // keep it public
 
46
  Item_func_set_user_var(lex_string_t a,Item *b) :
 
47
    Item_func(b), cached_result_type(INT_RESULT), name(a)
48
48
  {}
49
 
  enum Functype functype() const { return SUSERVAR_FUNC; }
 
49
  Functype functype() const { return SUSERVAR_FUNC; }
50
50
  double val_real();
51
51
  int64_t val_int();
52
52
  String *val_str(String *str);