28
28
Field_datetime(uchar *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
29
29
enum utype unireg_check_arg, const char *field_name_arg,
30
const CHARSET_INFO * const cs)
31
31
:Field_str(ptr_arg, 19, null_ptr_arg, null_bit_arg,
32
32
unireg_check_arg, field_name_arg, cs)
34
34
Field_datetime(bool maybe_null_arg, const char *field_name_arg,
35
const CHARSET_INFO * const cs)
36
36
:Field_str((uchar*) 0,19, maybe_null_arg ? (uchar*) "": 0,0,
37
37
NONE, field_name_arg, cs) {}
38
38
enum_field_types type() const { return DRIZZLE_TYPE_DATETIME;}
39
39
enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
40
40
enum Item_result cmp_type () const { return INT_RESULT; }
41
41
uint decimals() const { return DATETIME_DEC; }
42
int store(const char *to,uint length,CHARSET_INFO *charset);
42
int store(const char *to,uint length, const CHARSET_INFO * const charset);
43
43
int store(double nr);
44
44
int store(int64_t nr, bool unsigned_val);
45
45
int store_time(DRIZZLE_TIME *ltime, timestamp_type type);