My Project
Public Member Functions
Item_name_const Class Reference
Inheritance diagram for Item_name_const:

List of all members.

Public Member Functions

 Item_name_const (Item *name_arg, Item *val)
bool fix_fields (THD *, Item **)
enum Type type () const
double val_real ()
longlong val_int ()
Stringval_str (String *sp)
my_decimalval_decimal (my_decimal *)
bool get_date (MYSQL_TIME *ltime, uint fuzzydate)
bool get_time (MYSQL_TIME *ltime)
bool is_null ()
virtual void print (String *str, enum_query_type query_type)
Item_result result_type () const
type_conversion_status save_in_field (Field *field, bool no_conversions)
bool send (Protocol *protocol, String *str)

Member Function Documentation

void Item_name_const::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.

type_conversion_status Item_name_const::save_in_field ( Field field,
bool  no_conversions 
) [inline, virtual]

Save a temporal value in packed longlong format into a Field. Used in optimizer.

OUTfield The field to set the value to.
Return values:
0On success.
>0In error.

Reimplemented from Item.

bool Item_name_const::send ( Protocol protocol,
String buffer 
) [inline, virtual]

This is only called from items that is not of type item_field.

Reimplemented from Item.

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