My Project
Public Member Functions
Item_num Class Reference
Inheritance diagram for Item_num:
Item_basic_constant Item Item_decimal Item_float Item_int Item_static_float_func Item_bool Item_int_0 Item_int_with_ref Item_return_int Item_temporal Item_uint Item_temporal_with_ref Item_datetime_with_ref Item_time_with_ref

List of all members.

Public Member Functions

virtual Item_numneg ()=0
Itemsafe_charset_converter (const CHARSET_INFO *tocs)
bool check_partition_func_processor (uchar *int_arg)

Member Function Documentation

Item * Item_num::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.

Reimplemented in Item_static_float_func.


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