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

List of all members.

Public Member Functions

 Item_func_coalesce (List< Item > &list)
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 *)
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 ()
void find_num_type ()
enum Item_result result_type () const
const char * func_name () const
table_map not_null_tables () const
enum_field_types field_type () const

Protected Member Functions

 Item_func_coalesce (Item *a, Item *b)

Protected Attributes

enum_field_types cached_field_type

Member Function Documentation

bool Item_func_coalesce::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.

Implements Item_func_numhybrid.

Reimplemented in Item_func_ifnull.

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.

Implements Item_func_numhybrid.

Reimplemented in Item_func_ifnull.

longlong Item_func_coalesce::int_op ( ) [virtual]

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

Returns:
The result of the operation.

Implements Item_func_numhybrid.

Reimplemented in Item_func_ifnull.

double Item_func_coalesce::real_op ( ) [virtual]

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

Returns:
The result of the operation.

Implements Item_func_numhybrid.

Reimplemented in Item_func_ifnull.

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

Coalesce - return first not NULL argument.

Implements Item_func_numhybrid.

Reimplemented in Item_func_ifnull.


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