40
37
/** Internal storage for the string values of the ENUM */
42
Field_enum(unsigned char *ptr_arg,
44
unsigned char *null_ptr_arg,
39
Field_enum(unsigned char *ptr_arg, uint32_t len_arg, unsigned char *null_ptr_arg,
45
40
unsigned char null_bit_arg,
46
const char *field_name_arg,
41
enum utype unireg_check_arg, const char *field_name_arg,
47
42
uint32_t packlength_arg,
48
43
TYPELIB *typelib_arg,
49
44
const CHARSET_INFO * const charset_arg)
56
packlength(packlength_arg),
45
:Field_str(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
46
unireg_check_arg, field_name_arg, charset_arg),
47
packlength(packlength_arg),typelib(typelib_arg)
61
Field *new_field(memory::Root *root, Table *new_table, bool keep_type);
51
Field *new_field(MEM_ROOT *root, Table *new_table, bool keep_type);
62
52
enum ha_base_keytype key_type() const;
63
53
int store(const char *to, uint32_t length, const CHARSET_INFO * const);
64
54
int store(double nr);
114
108
/* enum and set are sorted as integers */
115
109
const CHARSET_INFO *sort_charset(void) const { return &my_charset_bin; }
111
int do_save_field_metadata(unsigned char *first_byte);
118
} /* namespace drizzled */
120
114
#endif /* DRIZZLED_FIELD_ENUM_H */