My Project
Public Member Functions
Item_date_func Class Reference

#include <item_timefunc.h>

Inheritance diagram for Item_date_func:
Item_temporal_func Item_func Item_result_field Item Item_date_literal Item_date_typecast Item_func_curdate Item_func_from_days Item_func_last_day Item_func_makedate Item_func_curdate_local Item_func_curdate_utc

List of all members.

Public Member Functions

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

Detailed Description

Abstract class for functions returning DATE values.


Member Function Documentation

type_conversion_status Item_date_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.

longlong Item_date_func::val_date_temporal ( ) [virtual]

Return date value of item in packed longlong format.

Reimplemented from Item.

Reimplemented in Item_func_curdate, and Item_date_literal.


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