22 #include <drizzled/function/func.h>
30 enum Item_result cached_result_type;
32 char buffer[MAX_FIELD_WIDTH];
49 Functype functype()
const {
return SUSERVAR_FUNC; }
55 int64_t val_int_result();
56 String *str_result(String *str);
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);
59 void send(plugin::Client *client, String *str_arg);
60 void make_field(SendField *tmp_field);
61 bool check(
bool use_result_field);
63 Item_result result_type ()
const {
return cached_result_type; }
64 bool fix_fields(Session *session,
Item **ref);
65 void fix_length_and_dec();
66 virtual void print(String *str);
68 const char *func_name()
const {
return "set_user_var"; }
69 int save_in_field(Field *field,
bool no_conversions,
70 bool can_use_result_field);
71 int save_in_field(Field *field,
bool no_conversions)
73 return save_in_field(field, no_conversions, 1);
75 void save_org_in_field(Field *field) { (void)save_in_field(field, 1, 0); }
76 bool register_field_in_read_map(
unsigned char *arg);