~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/timestamp.cc

fix length of timestamp type for metadata test (and fix its result). See jay's description at https://code.launchpad.net/~stewart-flamingspork/drizzle/bug373468/+merge/8089

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
                                 const char *field_name_arg,
80
80
                                 TableShare *share,
81
81
                                 const CHARSET_INFO * const cs)
82
 
  :Field_str(ptr_arg, drizzled::DateTime::MAX_STRING_LENGTH,
 
82
  :Field_str(ptr_arg,
 
83
             drizzled::DateTime::MAX_STRING_LENGTH - 1 /* no \0 */,
83
84
             null_ptr_arg, null_bit_arg,
84
85
             unireg_check_arg, field_name_arg, cs)
85
86
{
98
99
Field_timestamp::Field_timestamp(bool maybe_null_arg,
99
100
                                 const char *field_name_arg,
100
101
                                 const CHARSET_INFO * const cs)
101
 
  :Field_str((unsigned char*) 0, drizzled::DateTime::MAX_STRING_LENGTH,
 
102
  :Field_str((unsigned char*) 0,
 
103
             drizzled::DateTime::MAX_STRING_LENGTH - 1 /* no \0 */,
102
104
             maybe_null_arg ? (unsigned char*) "": 0, 0,
103
105
             NONE, field_name_arg, cs)
104
106
{