443
443
store_timestamp(tmp);
447
void Field_timestamp::set_default()
449
if (table->timestamp_field == this &&
450
unireg_check != TIMESTAMP_UN_FIELD)
453
Field::set_default();
456
long Field_timestamp::get_timestamp(bool *null_value)
458
if ((*null_value= is_null()))
460
#ifdef WORDS_BIGENDIAN
461
if (table && table->s->db_low_byte_first)
462
return sint4korr(ptr);
470
void Field_timestamp::store_timestamp(my_time_t timestamp)
472
#ifdef WORDS_BIGENDIAN
473
if (table && table->s->db_low_byte_first)
475
int4store(ptr,timestamp);
479
longstore(ptr,(uint32_t) timestamp);