My Project
Public Member Functions
Item_func_round Class Reference
Inheritance diagram for Item_func_round:
Item_func_num1 Item_func_numhybrid Item_func Item_result_field Item

List of all members.

Public Member Functions

 Item_func_round (Item *a, Item *b, bool trunc_arg)
const char * func_name () const
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.
my_decimaldecimal_op (my_decimal *)
 Performs the operation that this functions implements when the result type is DECIMAL.
void fix_length_and_dec ()

Member Function Documentation

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.

longlong Item_func_round::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.

double Item_func_round::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.


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