21
21
#ifndef DRIZZLE_SERVER_FIELD_DATETIME
22
22
#define DRIZZLE_SERVER_FIELD_DATETIME
24
#include <drizzled/field/str.h>
24
26
class Field_datetime :public Field_str {
26
Field_datetime(unsigned char *ptr_arg, unsigned char *null_ptr_arg, unsigned char null_bit_arg,
27
enum utype unireg_check_arg, const char *field_name_arg,
28
const CHARSET_INFO * const cs)
28
Field_datetime(unsigned char *ptr_arg, unsigned char *null_ptr_arg,
29
unsigned char null_bit_arg,
30
enum utype unireg_check_arg, const char *field_name_arg,
31
const CHARSET_INFO * const cs)
29
32
:Field_str(ptr_arg, 19, null_ptr_arg, null_bit_arg,
30
unireg_check_arg, field_name_arg, cs)
33
unireg_check_arg, field_name_arg, cs)
32
35
Field_datetime(bool maybe_null_arg, const char *field_name_arg,
33
const CHARSET_INFO * const cs)
36
const CHARSET_INFO * const cs)
34
37
:Field_str((unsigned char*) 0,19, maybe_null_arg ? (unsigned char*) "": 0,0,
35
NONE, field_name_arg, cs) {}
38
NONE, field_name_arg, cs) {}
36
39
enum_field_types type() const { return DRIZZLE_TYPE_DATETIME;}
37
40
enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
38
41
enum Item_result cmp_type () const { return INT_RESULT; }