My Project
Public Member Functions | Protected Member Functions | Protected Attributes
Item_temporal_hybrid_func Class Reference

#include <item_timefunc.h>

Inheritance diagram for Item_temporal_hybrid_func:
Item_str_func Item_func Item_result_field Item Item_date_add_interval Item_func_add_time Item_func_str_to_date

List of all members.

Public Member Functions

 Item_temporal_hybrid_func (Item *a, Item *b)
enum Item_result result_type () const
enum_field_types field_type () const
const CHARSET_INFO * charset_for_protocol () const
Fieldtmp_table_field (TABLE *table)
longlong val_int ()
double val_real ()
my_decimalval_decimal (my_decimal *decimal_value)
type_conversion_status save_in_field (Field *field, bool no_conversions)
Stringval_str_ascii (String *str)
Stringval_str (String *str)
bool get_date (MYSQL_TIME *ltime, uint fuzzydate)
bool get_time (MYSQL_TIME *ltime)

Protected Member Functions

virtual bool val_datetime (MYSQL_TIME *ltime, uint fuzzy_date)=0

Protected Attributes

sql_mode_t sql_mode
enum_field_types cached_field_type
String ascii_buf

Detailed Description

Abstract class for functions returning TIME, DATE, DATETIME or string values, whose data type depends on parameters and is set at fix_field time.

Member Function Documentation

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

Save a temporal value in packed longlong format into a Field. Used in optimizer.

OUTfield The field to set the value to.
Return values:
0On success.
>0In error.

Reimplemented from Item.

virtual bool Item_temporal_hybrid_func::val_datetime ( MYSQL_TIME *  ltime,
uint  fuzzy_date 
) [protected, pure virtual]

Get "native" temporal value as MYSQL_TIME

OUTltime The value is stored here.
INfuzzy_date Date flags.
Return values:
falseOn success.
trueOn error.

Implemented in Item_func_str_to_date, and Item_date_add_interval.

String* Item_temporal_hybrid_func::val_str ( String str) [inline, virtual]

Return string value in @character_set_connection.

Implements Item.

Return string value in ASCII character set.

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