23 #include <drizzled/field/str.h>
37 unsigned char *null_ptr_arg,
38 unsigned char null_bit_arg,
39 const char *field_name_arg) :
49 const char *field_name_arg) :
52 maybe_null_arg ? (
unsigned char*)
"": 0,
58 enum_field_types type()
const {
return DRIZZLE_TYPE_DATE;}
59 enum_field_types real_type()
const {
return DRIZZLE_TYPE_DATE; }
60 enum ha_base_keytype key_type()
const {
return HA_KEYTYPE_ULONG_INT; }
61 enum Item_result cmp_type ()
const {
return INT_RESULT; }
62 int store(
const char *to,uint32_t length,
65 int store(int64_t nr,
bool unsigned_val);
67 int reset(
void) {
ptr[0]=
ptr[1]=
ptr[2]=
ptr[3]=0;
return 0; }
68 double val_real(
void)
const;
69 int64_t val_int(
void)
const;
71 int cmp(
const unsigned char *,
const unsigned char *);
72 void sort_string(
unsigned char *buff,uint32_t length);
75 bool zero_pack()
const {
return 1; }
76 bool get_date(type::Time <ime,uint32_t fuzzydate)
const;
77 bool get_time(type::Time <ime)
const;
int store_time(type::Time <ime, type::timestamp_t type)
TODO: Rename this file - func.h is stupid.
bool can_be_compared_as_int64_t() const
uint32_t pack_length() const