My Project
Public Member Functions
Field_temporal_with_date_and_timef Class Reference

#include <field.h>

Inheritance diagram for Field_temporal_with_date_and_timef:
Field_temporal_with_date_and_time Field_temporal_with_date Field_temporal Field Field_datetimef Field_timestampf

List of all members.

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_decimalval_decimal (my_decimal *decimal_value)

Detailed Description

Abstract class for types with date and time, with fractional part: DATETIME, DATETIME(N), TIMESTAMP, TIMESTAMP(N).


Constructor & Destructor Documentation

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]

Constructor for Field_temporal_with_date_and_timef

Parameters:
ptr_argSee Field definition
null_ptr_argSee Field definition
null_bit_argSee Field definition
unireg_check_argSee Field definition
field_name_argSee Field definition
dec_argNumber of second fraction digits, 0..6.
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

Parameters:
maybe_null_argSee Field definition
field_name_argSee Field definition
dec_argNumber of second fraction digits, 0..6.

Member Function Documentation

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.

Parameters:
buffThe buffer, assumed to be at least length bytes.
lengthNumber of bytes to write.

Implements Field.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines