My Project
Public Member Functions
Item_temporal Class Reference
Inheritance diagram for Item_temporal:
Item_int Item_num Item_basic_constant Item

List of all members.

Public Member Functions

 Item_temporal (enum_field_types field_type_arg, longlong i)
 Item_temporal (enum_field_types field_type_arg, const Name_string &name_arg, longlong i, uint length)
Itemclone_item ()
type_conversion_status save_in_field (Field *field, bool no_conversions)
longlong val_time_temporal ()
longlong val_date_temporal ()
bool get_date (MYSQL_TIME *ltime, uint fuzzydate)
bool get_time (MYSQL_TIME *ltime)
enum_field_types field_type () const

Member Function Documentation

type_conversion_status Item_temporal::save_in_field ( Field field,
bool  no_conversions 
) [virtual]

Store this item's int-value in a field

Parameters:
fieldThe field where the int value is to be stored
no_conversionsOnly applies if the value to store is NULL (null_value is true) and NULL is not allowed in field. In that case: if no_coversion is true, do nothing and return with error TYPE_ERR_NULL_CONSTRAINT_VIOLATION. If no_coversion is false, the field's default value is stored if one exists. Otherwise an error is returned.
Return values:
TYPE_OKStoring of value went fine without warnings or errors
!TYPE_OKWarning/error as indicated by type_conversion_status enum value

Reimplemented from Item_int.

longlong Item_temporal::val_date_temporal ( ) [inline, virtual]

Return date value of item in packed longlong format.

Reimplemented from Item.

longlong Item_temporal::val_time_temporal ( ) [inline, virtual]

Return time value of item in packed longlong format.

Reimplemented from Item.


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