My Project
Public Member Functions
Item_num_op Class Reference
Inheritance diagram for Item_num_op:
Item_func_numhybrid Item_func Item_result_field Item Item_func_additive_op Item_func_div Item_func_mod Item_func_mul Item_func_minus Item_func_plus

List of all members.

Public Member Functions

 Item_num_op (Item *a, Item *b)
virtual void result_precision ()=0
virtual void print (String *str, enum_query_type query_type)
void find_num_type ()
Stringstr_op (String *str)
 Performs the operation that this functions implements when the result type is a string type.
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)

Member Function Documentation

bool Item_num_op::date_op ( MYSQL_TIME *  ltime,
uint  fuzzydate 
) [inline, 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.

void Item_num_op::find_num_type ( void  ) [virtual]

Check arguments here to determine result's type for a numeric function of two arguments.

Implements Item_func_numhybrid.

virtual void Item_num_op::print ( String str,
enum_query_type  query_type 
) [inline, virtual]

This method is used for to:

  • to generate a view definition query (SELECT-statement);
  • to generate a SQL-query for EXPLAIN EXTENDED;
  • to generate a SQL-query to be shown in INFORMATION_SCHEMA;
  • debug.

For more information about view definition query, INFORMATION_SCHEMA query and why they should be generated from the Item-tree,

See also:
mysql_register_view().

Reimplemented from Item_func.

String* Item_num_op::str_op ( String ) [inline, virtual]

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

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