My Project
Public Member Functions
Item_date_literal Class Reference

#include <item_timefunc.h>

Inheritance diagram for Item_date_literal:
Item_date_func Item_temporal_func Item_func Item_result_field Item

List of all members.

Public Member Functions

 Item_date_literal (MYSQL_TIME *ltime)
const char * func_name () const
void print (String *str, enum_query_type query_type)
longlong val_date_temporal ()
bool get_date (MYSQL_TIME *ltime, uint fuzzy_date)
Stringval_str (String *str)
void fix_length_and_dec ()
bool check_partition_func_processor (uchar *int_arg)
bool basic_const_item () const
bool const_item () const
table_map used_tables () const
table_map not_null_tables () const
void cleanup ()
bool eq (const Item *item, bool binary_cmp) const

Detailed Description

DATE'2010-01-01'


Constructor & Destructor Documentation

Item_date_literal::Item_date_literal ( MYSQL_TIME *  ltime) [inline]

Constructor for Item_date_literal.

Parameters:
ltimeDATE value.

Member Function Documentation

bool Item_date_literal::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_date_literal::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:
mysql_register_view().

Reimplemented from Item_func.

longlong Item_date_literal::val_date_temporal ( ) [inline, virtual]

Return date value of item in packed longlong format.

Reimplemented from Item_date_func.


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