My Project
Public Member Functions
Item_static_float_func Class Reference
Inheritance diagram for Item_static_float_func:
Item_float Item_num Item_basic_constant Item

List of all members.

Public Member Functions

 Item_static_float_func (const Name_string &name_arg, double val_arg, uint decimal_par, uint length)
virtual void print (String *str, enum_query_type query_type)
Itemsafe_charset_converter (const CHARSET_INFO *tocs)

Member Function Documentation

virtual void Item_static_float_func::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_float.

Item * Item_static_float_func::safe_charset_converter ( const CHARSET_INFO *  tocs) [virtual]

Created mostly for mysql_prepare_table(). Important when a string ENUM/SET column is described with a numeric default value:

CREATE TABLE t1(a SET('a') DEFAULT 1);

We cannot use generic Item::safe_charset_converter(), because the latter returns a non-fixed Item, so val_str() crashes afterwards. Override Item_num method, to return a fixed item.

Reimplemented from Item_num.


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