My Project
|
#include <field.h>
Public Member Functions | |
Field_temporal_with_date_and_time (uchar *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg, enum utype unireg_check_arg, const char *field_name_arg, uint8 dec_arg) | |
void | store_timestamp (const struct timeval *tm) |
Protected Member Functions | |
void | init_timestamp_flags () |
virtual void | store_timestamp_internal (const struct timeval *tm)=0 |
bool | convert_TIME_to_timestamp (THD *thd, const MYSQL_TIME *ltime, struct timeval *tm, int *error) |
Abstract class for types with date and time, with or without fractional part: DATETIME, DATETIME(N), TIMESTAMP, TIMESTAMP(N).
Field_temporal_with_date_and_time::Field_temporal_with_date_and_time | ( | uchar * | ptr_arg, |
uchar * | null_ptr_arg, | ||
uchar | null_bit_arg, | ||
enum utype | unireg_check_arg, | ||
const char * | field_name_arg, | ||
uint8 | dec_arg | ||
) | [inline] |
void Field_temporal_with_date_and_time::init_timestamp_flags | ( | ) | [protected] |
Initialize flags for TIMESTAMP DEFAULT CURRENT_TIMESTAMP / ON UPDATE CURRENT_TIMESTAMP columns.
virtual void Field_temporal_with_date_and_time::store_timestamp_internal | ( | const struct timeval * | tm | ) | [protected, pure virtual] |
Store "struct timeval" value into field. The value must be properly rounded or truncated according to the number of fractional second digits.
Implemented in Field_datetimef, Field_datetime, Field_timestampf, and Field_timestamp.