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

List of all members.

Public Member Functions

 Item_func_neg (Item *a)
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.
const char * func_name () const
enum Functype functype () const
void fix_length_and_dec ()
void fix_num_length_and_dec ()
uint decimal_precision () const
bool check_partition_func_processor (uchar *int_arg)

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_neg::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_neg::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