33
32
in List<Item> and desire to place this code somewhere near other functions
34
33
working with user variables.
36
class Item_user_var_as_out_param :public Item
35
class Item_user_var_as_out_param : public Item
39
38
user_var_entry *entry;
41
Item_user_var_as_out_param(lex_string_t a) : name(a) {}
40
Item_user_var_as_out_param(str_ref a) : name(a) {}
42
41
/* We should return something different from FIELD_ITEM here */
43
enum Type type() const { return STRING_ITEM;}
42
Type type() const { return STRING_ITEM;}
46
String *val_str(String *str);
45
String *val_str(String*);
47
46
type::Decimal *val_decimal(type::Decimal *decimal_buffer);
48
47
/* fix_fields() binds variable name with its entry structure */
49
bool fix_fields(Session *session, Item **ref);
50
virtual void print(String *str);
51
void set_null_value(const charset_info_st * const cs);
52
void set_value(const char *str, uint32_t length, const charset_info_st * const cs);
48
bool fix_fields(Session*, Item **ref);
49
virtual void print(String*);
50
void set_null_value(const charset_info_st*);
51
void set_value(str_ref, const charset_info_st*);
55
54
} /* namespace drizzled */