My Project
Public Member Functions | Public Attributes
Item_extract Class Reference
Inheritance diagram for Item_extract:
Item_int_func Item_func Item_result_field Item

List of all members.

Public Member Functions

 Item_extract (interval_type type_arg, Item *a)
longlong val_int ()
enum Functype functype () const
const char * func_name () const
void fix_length_and_dec ()
bool eq (const Item *item, bool binary_cmp) const
virtual void print (String *str, enum_query_type query_type)
bool check_partition_func_processor (uchar *int_arg)
bool check_valid_arguments_processor (uchar *int_arg)

Public Attributes

const interval_type int_type

Member Function Documentation

bool Item_extract::eq ( const Item item,
bool  binary_cmp 
) const [virtual]

This function is called when:

  • Comparing items in the WHERE clause (when doing where optimization)
  • When trying to find an ORDER BY/GROUP BY item in the SELECT part
  • When matching fields in multiple equality objects (Item_equal)

Reimplemented from Item_func.

void Item_extract::print ( String str,
enum_query_type  query_type 
) [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:

Reimplemented from Item_func.

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