My Project
|
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) | |
Item * | clone_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 |
type_conversion_status Item_temporal::save_in_field | ( | Field * | field, |
bool | no_conversions | ||
) | [virtual] |
Store this item's int-value in a field
field | The field where the int value is to be stored |
no_conversions | Only 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. |
TYPE_OK | Storing of value went fine without warnings or errors |
!TYPE_OK | Warning/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.