~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/datetime.h

updating to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  Field_datetime(unsigned char *ptr_arg,
38
38
                 unsigned char *null_ptr_arg,
39
39
                 unsigned char null_bit_arg,
40
 
                 const char *field_name_arg,
41
 
                 const CHARSET_INFO * const cs)
42
 
    :Field_str(ptr_arg,
 
40
                 const char *field_name_arg) :
 
41
    Field_str(ptr_arg,
43
42
               19,
44
43
               null_ptr_arg,
45
44
               null_bit_arg,
46
45
               field_name_arg,
47
 
               cs)
 
46
               &my_charset_bin)
48
47
  {}
 
48
 
49
49
  Field_datetime(bool maybe_null_arg,
50
 
                 const char *field_name_arg,
51
 
                 const CHARSET_INFO * const cs)
52
 
    :Field_str((unsigned char*) 0,
 
50
                 const char *field_name_arg) :
 
51
    Field_str((unsigned char*) 0,
53
52
               19,
54
53
               maybe_null_arg ? (unsigned char*) "": 0,
55
54
               0,
56
55
               field_name_arg,
57
 
               cs) 
 
56
               &my_charset_bin) 
58
57
  {}
 
58
 
59
59
  enum_field_types type() const { return DRIZZLE_TYPE_DATETIME;}
60
60
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
61
61
  enum Item_result cmp_type () const { return INT_RESULT; }