~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/set_user_var.h

  • Committer: Mark Atwood
  • Date: 2011-10-19 00:10:47 UTC
  • mfrom: (2440.2.13 rf)
  • Revision ID: me@mark.atwood.name-20111019001047-atj0u8gedphon1tb
mergeĀ lp:~olafvdspek/drizzle/refactor5

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(str_ref 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);
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(void *ptr, uint32_t length, enum Item_result type,
59
 
                   const charset_info_st * const cs, Derivation dv, bool unsigned_arg);
 
58
  void update_hash(data_ref, Item_result type, const charset_info_st* cs, Derivation dv, bool unsigned_arg);
60
59
  void send(plugin::Client *client, String *str_arg);
61
60
  void make_field(SendField *tmp_field);
62
61
  bool check(bool use_result_field);