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_DATETIME;}
59 enum ha_base_keytype key_type()
const {
return HA_KEYTYPE_ULONGLONG; }
60 enum Item_result cmp_type ()
const {
return INT_RESULT; }
61 uint32_t decimals()
const {
return DATETIME_DEC; }
62 int store(
const char *to,uint32_t length,
const charset_info_st *
const charset);
64 int store(int64_t nr,
bool unsigned_val);
71 double val_real(
void)
const;
72 int64_t val_int(
void)
const;
74 int cmp(
const unsigned char *,
const unsigned char *);
75 void sort_string(
unsigned char *buff,uint32_t length);
78 bool zero_pack()
const {
return 1; }
79 bool get_date(type::Time <ime,uint32_t fuzzydate)
const;
80 bool get_time(type::Time <ime)
const;
TODO: Rename this file - func.h is stupid.
bool can_be_compared_as_int64_t() const
uint32_t pack_length() const
int store_time(type::Time <ime, type::timestamp_t type)