My Project
Public Member Functions
Item_time_literal Class Reference

#include <item_timefunc.h>

Inheritance diagram for Item_time_literal:
Item_time_func Item_temporal_func Item_func Item_result_field Item

List of all members.

Public Member Functions

 Item_time_literal (MYSQL_TIME *ltime, uint dec_arg)
const char * func_name () const
void print (String *str, enum_query_type query_type)
longlong val_time_temporal ()
bool get_time (MYSQL_TIME *ltime)
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

TIME'10:10:10'


Constructor & Destructor Documentation

Item_time_literal::Item_time_literal ( MYSQL_TIME *  ltime,
uint  dec_arg 
) [inline]

Constructor for Item_time_literal.

Parameters:
ltimeTIME value.
dec_argnumber of fractional digits in ltime.

Member Function Documentation

bool Item_time_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_time_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_time_literal::val_time_temporal ( ) [inline, virtual]

Return time value of item in packed longlong format.

Reimplemented from Item_time_func.


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