My Project
|
Public Member Functions | |
virtual Item_num * | neg ()=0 |
Item * | safe_charset_converter (const CHARSET_INFO *tocs) |
bool | check_partition_func_processor (uchar *int_arg) |
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.