My Project
Public Member Functions
Item_datetime_func Class Reference

#include <item_timefunc.h>

Inheritance diagram for Item_datetime_func:
Item_temporal_func Item_func Item_result_field Item Item_datetime_literal Item_datetime_typecast Item_func_convert_tz Item_func_from_unixtime Item_func_now Item_func_sysdate_local Item_func_now_local Item_func_now_utc

List of all members.

Public Member Functions

 Item_datetime_func (Item *a)
 Item_datetime_func (Item *a, Item *b)
 Item_datetime_func (Item *a, Item *b, Item *c)
enum_field_types field_type () const
double val_real ()
Stringval_str (String *str)
longlong val_int ()
longlong val_date_temporal ()
my_decimalval_decimal (my_decimal *decimal_value)
type_conversion_status save_in_field (Field *field, bool no_conversions)
bool get_time (MYSQL_TIME *ltime)
virtual bool get_date (MYSQL_TIME *res, uint fuzzy_date)=0

Detailed Description

Abstract class for functions returning DATETIME values.


Member Function Documentation

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

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

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

Reimplemented from Item.

Reimplemented in Item_func_now.

longlong Item_datetime_func::val_date_temporal ( ) [virtual]

Return date value of item in packed longlong format.

Reimplemented from Item.

Reimplemented in Item_func_now, and Item_datetime_literal.


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