My Project
Public Member Functions | Protected Attributes
Item_func_ifnull Class Reference
Inheritance diagram for Item_func_ifnull:
Item_func_coalesce Item_func_numhybrid Item_func Item_result_field Item

List of all members.

Public Member Functions

 Item_func_ifnull (Item *a, Item *b)
double real_op ()
 Performs the operation that this functions implements when the result type is REAL.
longlong int_op ()
 Performs the operation that this functions implements when the result type is INT.
Stringstr_op (String *str)
bool date_op (MYSQL_TIME *ltime, uint fuzzydate)
 Performs the operation that this functions implements when the result type is MYSQL_TYPE_DATE or MYSQL_TYPE_DATETIME.
bool time_op (MYSQL_TIME *ltime)
my_decimaldecimal_op (my_decimal *)
 Performs the operation that this functions implements when the result type is DECIMAL.
void fix_length_and_dec ()
const char * func_name () const
Fieldtmp_table_field (TABLE *table)
uint decimal_precision () const

Protected Attributes

bool field_type_defined

Member Function Documentation

bool Item_func_ifnull::date_op ( MYSQL_TIME *  ltime,
uint  fuzzydate 
) [virtual]

Performs the operation that this functions implements when the result type is MYSQL_TYPE_DATE or MYSQL_TYPE_DATETIME.

Returns:
The result of the operation.

Reimplemented from Item_func_coalesce.

Performs the operation that this functions implements when the result type is DECIMAL.

Parameters:
Apointer where the DECIMAL value will be allocated.
Returns:
  • 0 If the result is NULL
  • The same pointer it was given, with the area initialized to the result of the operation.

Reimplemented from Item_func_coalesce.

longlong Item_func_ifnull::int_op ( ) [virtual]

Performs the operation that this functions implements when the result type is INT.

Returns:
The result of the operation.

Reimplemented from Item_func_coalesce.

double Item_func_ifnull::real_op ( ) [virtual]

Performs the operation that this functions implements when the result type is REAL.

Returns:
The result of the operation.

Reimplemented from Item_func_coalesce.

String * Item_func_ifnull::str_op ( String str) [virtual]

Coalesce - return first not NULL argument.

Reimplemented from Item_func_coalesce.


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