~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-17 22:46:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2442.
  • Revision ID: olafvdspek@gmail.com-20111017224616-gcj9z1sjpauwsp14
Refactor

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
 
  str_ref name; // keep it public
46
 
  Item_func_set_user_var(str_ref a,Item *b) :
47
 
    Item_func(b), cached_result_type(INT_RESULT), name(a)
 
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)
48
48
  {}
49
 
  Functype functype() const { return SUSERVAR_FUNC; }
 
49
  enum Functype functype() const { return SUSERVAR_FUNC; }
50
50
  double val_real();
51
51
  int64_t val_int();
52
52
  String *val_str(String *str);
55
55
  int64_t val_int_result();
56
56
  String *str_result(String *str);
57
57
  type::Decimal *val_decimal_result(type::Decimal *);
58
 
  void update_hash(data_ref, Item_result type, const charset_info_st* cs, Derivation dv, bool unsigned_arg);
 
58
  void update_hash(void *ptr, uint32_t length, enum Item_result type,
 
59
                   const charset_info_st * const cs, Derivation dv, bool unsigned_arg);
59
60
  void send(plugin::Client *client, String *str_arg);
60
61
  void make_field(SendField *tmp_field);
61
62
  bool check(bool use_result_field);