My Project
|
#include <field.h>
Public Member Functions | |
Field_temporal_with_date_and_timef (uchar *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg, enum utype unireg_check_arg, const char *field_name_arg, uint8 dec_arg) | |
Field_temporal_with_date_and_timef (bool maybe_null_arg, const char *field_name_arg, uint8 dec_arg) | |
uint | decimals () const |
const CHARSET_INFO * | sort_charset () const |
void | make_sort_key (uchar *to, uint length) |
int | cmp (const uchar *a_ptr, const uchar *b_ptr) |
uint | row_pack_length () const |
double | val_real () |
longlong | val_int () |
my_decimal * | val_decimal (my_decimal *decimal_value) |
Abstract class for types with date and time, with fractional part: DATETIME, DATETIME(N), TIMESTAMP, TIMESTAMP(N).
Field_temporal_with_date_and_timef::Field_temporal_with_date_and_timef | ( | 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] |
Field_temporal_with_date_and_timef::Field_temporal_with_date_and_timef | ( | bool | maybe_null_arg, |
const char * | field_name_arg, | ||
uint8 | dec_arg | ||
) | [inline] |
Constructor for Field_temporal_with_date_and_timef
void Field_temporal_with_date_and_timef::make_sort_key | ( | uchar * | buff, |
uint | length | ||
) | [inline, virtual] |
Writes a copy of the current value in the record buffer, suitable for sorting using byte-by-byte comparison. Integers are always in big-endian regardless of hardware architecture. At most length bytes are written into the buffer.
buff | The buffer, assumed to be at least length bytes. |
length | Number of bytes to write. |
Implements Field.