The world's most popular open source database
#include <item.h>
Inheritance diagram for Item:


Definition at line 447 of file item.h.
| enum Item::cond_result |
| enum Item::traverse_order |
| enum Item::Type |
Definition at line 458 of file item.h.
00458 {FIELD_ITEM= 0, FUNC_ITEM, SUM_FUNC_ITEM, STRING_ITEM, 00459 INT_ITEM, REAL_ITEM, NULL_ITEM, VARBIN_ITEM, 00460 COPY_STR_ITEM, FIELD_AVG_ITEM, DEFAULT_VALUE_ITEM, 00461 PROC_ITEM,COND_ITEM, REF_ITEM, FIELD_STD_ITEM, 00462 FIELD_VARIANCE_ITEM, INSERT_VALUE_ITEM, 00463 SUBSELECT_ITEM, ROW_ITEM, CACHE_ITEM, TYPE_HOLDER, 00464 PARAM_ITEM, TRIGGER_FIELD_ITEM, DECIMAL_ITEM, 00465 XPATH_NODESET, XPATH_NODESET_CMP, 00466 VIEW_FIXER_ITEM};
| Item::Item | ( | const Item & | ) | [private] |
| Item::Item | ( | ) |
Definition at line 296 of file item.cc.
References current_thd, decimals, IN_HAVING, marker, max_length, maybe_null, next, null_value, SELECT_LIST, unsigned_flag, with_subselect, and with_sum_func.
00296 : 00297 rsize(0), name(0), orig_name(0), name_length(0), fixed(0), 00298 is_autogenerated_name(TRUE), 00299 collation(&my_charset_bin, DERIVATION_COERCIBLE) 00300 { 00301 marker= 0; 00302 maybe_null=null_value=with_sum_func=unsigned_flag=0; 00303 decimals= 0; max_length= 0; 00304 with_subselect= 0; 00305 00306 /* Put item in free list so that we can free all items at end */ 00307 THD *thd= current_thd; 00308 next= thd->free_list; 00309 thd->free_list= this; 00310 /* 00311 Item constructor can be called during execution other then SQL_COM 00312 command => we should check thd->lex->current_select on zero (thd->lex 00313 can be uninitialised) 00314 */ 00315 if (thd->lex->current_select) 00316 { 00317 enum_parsing_place place= 00318 thd->lex->current_select->parsing_place; 00319 if (place == SELECT_LIST || 00320 place == IN_HAVING) 00321 thd->lex->current_select->select_n_having_items++; 00322 } 00323 }
| Item::Item | ( | THD * | thd, | |
| Item * | item | |||
| ) |
Definition at line 330 of file item.cc.
References next.
00330 : 00331 rsize(0), 00332 str_value(item->str_value), 00333 name(item->name), 00334 orig_name(item->orig_name), 00335 max_length(item->max_length), 00336 marker(item->marker), 00337 decimals(item->decimals), 00338 maybe_null(item->maybe_null), 00339 null_value(item->null_value), 00340 unsigned_flag(item->unsigned_flag), 00341 with_sum_func(item->with_sum_func), 00342 fixed(item->fixed), 00343 collation(item->collation) 00344 { 00345 next= thd->free_list; // Put in free list 00346 thd->free_list= this; 00347 }
| virtual Item::~Item | ( | ) | [inline, virtual] |
Reimplemented in Item_cache_row, Item_row, and Item_singlerow_subselect.
Definition at line 840 of file item.h.
Referenced by Item_in_subselect::row_value_transformer(), Arg_comparator::set_compare_func(), and this_item_addr().
Here is the caller graph for this function:

| virtual bool Item::basic_const_item | ( | ) | const [inline, virtual] |
Reimplemented in Item_null, Item_param, Item_int, Item_decimal, Item_float, Item_string, and Item_hex_string.
Definition at line 687 of file item.h.
Referenced by Item_hex_string::eq(), Item_float::eq(), Item_int::eq(), Item_param::eq(), Item_decimal::eq(), Item_string::eq(), find_order_in_list(), fix_fields(), Item_func_set_collation::print(), and resolve_const_item().
Here is the caller graph for this function:

| virtual void Item::bring_value | ( | ) | [inline, virtual] |
Reimplemented in Item_cache_row, Item_row, and Item_singlerow_subselect.
Definition at line 845 of file item.h.
Referenced by cmp_item_row::cmp(), Item_cache_row::store(), cmp_item_row::store_value(), and cmp_item_row::store_value_by_template().
Here is the caller graph for this function:

| virtual Item_result Item::cast_to_int_type | ( | ) | const [inline, virtual] |
Reimplemented in Item_field, and Item_hex_string.
Definition at line 538 of file item.h.
References result_type().
Referenced by Item_func_unsigned::val_int(), and Item_func_signed::val_int().
00538 { return result_type(); }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_ident, Item_func_sp, and Item_func_group_concat.
Definition at line 793 of file item.h.
Reimplemented in Item_cache_row, Item_row, and Item_singlerow_subselect.
Definition at line 568 of file item.cc.
References ER_OPERAND_COLUMNS, my_error(), and MYF.
Referenced by set_var::check(), Item_func_group_concat::fix_fields(), Item_sum_hybrid::fix_fields(), Item_sum_num::fix_fields(), Item_func_make_set::fix_fields(), Item_cond::fix_fields(), Item_field::fix_outer_field(), set_var::light_check(), mysql_execute_command(), st_table_list::prep_check_option(), JOIN::prepare(), and Item_in_subselect::row_value_transformer().
00569 { 00570 if (c != 1) 00571 { 00572 my_error(ER_OPERAND_COLUMNS, MYF(0), c); 00573 return 1; 00574 } 00575 return 0; 00576 }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_name_const, Item_num, Item_field, Item_null, Item_null_result, Item_static_float_func, Item_string, Item_static_string_func, Item_datetime, Item_return_int, Item_hex_string, Item_int_with_ref, Item_bool_rowready_func2, Item_func_not, Item_func_between, Item_func_strcmp, Item_func_ifnull, Item_func_nullif, Item_func_case, Item_func_in, Item_func_isnull, Item_is_not_null_test, Item_func_isnotnull, Item_func_like, Item_cond, Item_func_num1, Item_num_op, Item_func_signed, Item_decimal_typecast, Item_func_int_div, Item_func_exp, Item_func_ln, Item_func_log, Item_func_log2, Item_func_log10, Item_func_sqrt, Item_func_pow, Item_func_acos, Item_func_asin, Item_func_atan, Item_func_cos, Item_func_sin, Item_func_tan, Item_func_sign, Item_func_units, Item_func_min_max, Item_func_length, Item_func_char_length, Item_func_coercibility, Item_func_locate, Item_func_ascii, Item_func_ord, Item_func_find_in_set, Item_func_bit, Item_func_bit_count, Item_func_inet_aton, Item_func_md5, Item_func_sha, Item_func_concat, Item_func_reverse, Item_str_conv, Item_func_substr, Item_func_substr_index, Item_func_trim, Item_func_soundex, Item_func_rpad, Item_func_lpad, Item_func_conv, Item_func_hex, Item_func_unhex, Item_func_binary, Item_func_inet_ntoa, Item_func_quote, Item_func_conv_charset, Item_func_charset, Item_func_collation, Item_func_crc32, Item_func_uncompressed_length, Item_func_period_add, Item_func_period_diff, Item_func_to_days, Item_func_dayofmonth, Item_func_month, Item_func_dayofyear, Item_func_hour, Item_func_minute, Item_func_quarter, Item_func_second, Item_func_week, Item_func_yearweek, Item_func_year, Item_func_weekday, Item_func_unix_timestamp, Item_func_time_to_sec, Item_func_from_days, Item_func_date_format, Item_func_from_unixtime, Item_func_sec_to_time, Item_date_add_interval, Item_extract, Item_typecast_maybe_null, Item_char_typecast, Item_func_makedate, Item_func_add_time, Item_func_maketime, Item_func_microsecond, Item_func_timestamp_diff, Item_func_str_to_date, and Item_func_xml_extractvalue.
Definition at line 817 of file item.h.
References FALSE.
00818 { *(bool *)bool_arg= FALSE; return 0; }
| void Item::cleanup | ( | ) | [virtual] |
Reimplemented in Item_ident, Item_field, Item_null, Item_int, Item_decimal, Item_float, Item_string, Item_hex_string, Item_result_field, Item_ref, Item_trigger_field, Item_cache, Item_cache_row, Item_in_optimizer, Item_func_in, Item_func_like, Item_func_match, Item_func_sp, Item_row, Item_subselect, Item_singlerow_subselect, Item_maxmin_subselect, Item_sum_distinct, Item_sum_count, Item_sum_count_distinct, Item_sum_hybrid, Item_func_group_concat, and Item_func_convert_tz.
Definition at line 373 of file item.cc.
References DBUG_ENTER, DBUG_VOID_RETURN, fixed, marker, name, and orig_name.
Referenced by Item_row::cleanup(), Item_result_field::cleanup(), Item_trigger_field::cleanup(), Item_ident::cleanup(), cleanup_items(), cleanup_processor(), delete_self(), and mysql_select().
00374 { 00375 DBUG_ENTER("Item::cleanup"); 00376 fixed=0; 00377 marker= 0; 00378 if (orig_name) 00379 name= orig_name; 00380 DBUG_VOID_RETURN; 00381 }
Here is the caller graph for this function:

Reimplemented in Item_field.
Definition at line 791 of file item.h.
Referenced by add_group_and_distinct_keys().
Here is the caller graph for this function:

| virtual uint Item::cols | ( | ) | [inline, virtual] |
Reimplemented in Item_cache_row, Item_row, and Item_singlerow_subselect.
Definition at line 838 of file item.h.
Referenced by cmp_item_row::cmp(), Item_row::fix_fields(), Item_in_optimizer::fix_fields(), Item_in_optimizer::fix_left(), Item_in_subselect::row_value_transformer(), Item_in_subselect::select_in_like_transformer(), Item_cache_row::setup(), cmp_item_row::store_value(), and cmp_item_row::store_value_by_template().
Here is the caller graph for this function:

| virtual CHARSET_INFO* Item::compare_collation | ( | ) | [inline, virtual] |
Reimplemented in Item_bool_func2, Item_func_between, Item_func_case, Item_func_in, Item_func_isnull, Item_func_isnotnull, and Item_equal.
Definition at line 770 of file item.h.
References NULL.
Referenced by check_group_min_max_predicates(), and get_mm_leaf().
00770 { return NULL; }
Here is the caller graph for this function:

| virtual bool Item::const_during_execution | ( | ) | const [inline, virtual] |
Definition at line 705 of file item.h.
References PARAM_TABLE_BIT, and used_tables().
Referenced by Item_func_match::fix_fields(), Item_func_rand::fix_fields(), Item_func_like::fix_fields(), and JOIN::prepare().
00706 { return (used_tables() & ~PARAM_TABLE_BIT) == 0; }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual bool Item::const_item | ( | ) | const [inline, virtual] |
Reimplemented in Item_sp_variable, Item_name_const, Item_copy_string, Item_func_trig_cond, Item_func, Item_func_rand, Item_func_sleep, Item_func_get_user_var, Item_row, Item_subselect, Item_sum, Item_sum_count, Item_sum_hybrid, and Item_func_sysdate_local.
Definition at line 700 of file item.h.
References used_tables().
Referenced by change_cond_ref_to_const(), check_group_min_max_predicates(), const_expression_in_where(), count_field_types(), create_tmp_table(), Item_row::fix_fields(), Item_func_like::fix_fields(), Item_cond::fix_fields(), Item_in_optimizer::fix_fields(), Item_name_const::fix_fields(), Item_in_optimizer::fix_left(), Item_func_make_set::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Item_func_interval::fix_length_and_dec(), group_concat_key_cmp_with_order(), JOIN::make_sum_func_list(), maxmin_in_range(), merge_key_fields(), mysql_delete(), Item_int_with_ref::new_item(), opt_sum_query(), remove_duplicates(), JOIN::rollup_make_fields(), Item_param::safe_charset_converter(), simple_pred(), Item_equal::update_const(), Item_func_make_set::update_used_tables(), Item_row::update_used_tables(), Item_func::update_used_tables(), Item_equal::update_used_tables(), Item_cond::update_used_tables(), uses_only_table_name_fields(), and Item_func_concat::val_str().
00700 { return used_tables() == 0; }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual Item* Item::copy_andor_structure | ( | THD * | thd | ) | [inline, virtual] |
Reimplemented in Item_cond_and, and Item_cond_or.
Definition at line 765 of file item.h.
Referenced by fix_prepare_info_in_table_list(), JOIN::optimize(), st_table_list::prep_check_option(), st_table_list::reinit_before_use(), and simplify_joins().
Here is the caller graph for this function:

| virtual Item* Item::copy_or_same | ( | THD * | thd | ) | [inline, virtual] |
Reimplemented in Item_sum_sum, Item_sum_sum_distinct, Item_sum_avg_distinct, Item_sum_count, Item_sum_count_distinct, Item_sum_avg, Item_sum_variance, Item_sum_std, Item_sum_min, Item_sum_max, Item_sum_or, Item_sum_and, Item_sum_xor, Item_func_group_concat, and Item_sum_unique_users.
Definition at line 764 of file item.h.
Referenced by Item_sum::get_tmp_table_item(), Item_subselect::get_tmp_table_item(), Item_func::get_tmp_table_item(), get_tmp_table_item(), and JOIN::rollup_make_fields().
Here is the caller graph for this function:

| int Item::decimal_int_part | ( | ) | const [inline] |
Definition at line 694 of file item.h.
References decimal_precision(), decimals, and my_decimal_int_part().
Referenced by Item_func::count_decimal_length(), Item_func_case::decimal_precision(), Item_func_if::decimal_precision(), Item_func_ifnull::decimal_precision(), Item_func_min_max::fix_length_and_dec(), Item_type_holder::Item_type_holder(), and Item_type_holder::join_types().
00695 { return my_decimal_int_part(decimal_precision(), decimals); }
Here is the call graph for this function:

Here is the caller graph for this function:

| uint Item::decimal_precision | ( | ) | const [virtual] |
Reimplemented in Item_int, Item_uint, Item_decimal, Item_bool_func, Item_bool_func2, Item_func_between, Item_func_interval, Item_func_ifnull, Item_func_if, Item_func_nullif, Item_func_case, Item_func_in, Item_func_signed, and Item_func_neg.
Definition at line 350 of file item.cc.
References DECIMAL_MAX_PRECISION, DECIMAL_RESULT, decimals, INT_RESULT, max_length, min, my_decimal_length_to_precision(), result_type(), and unsigned_flag.
Referenced by decimal_int_part(), Item_func_neg::decimal_precision(), Item_func_signed::decimal_precision(), Item_func_nullif::decimal_precision(), Item_sum_variance::fix_length_and_dec(), Item_sum_avg::fix_length_and_dec(), Item_sum_sum::fix_length_and_dec(), Item_func_round::fix_length_and_dec(), Item_func_div::result_precision(), Item_func_mul::result_precision(), Item_func_additive_op::result_precision(), and Item_func::tmp_table_field().
00351 { 00352 Item_result restype= result_type(); 00353 00354 if ((restype == DECIMAL_RESULT) || (restype == INT_RESULT)) 00355 return min(my_decimal_length_to_precision(max_length, decimals, unsigned_flag), 00356 DECIMAL_MAX_PRECISION); 00357 return min(max_length, DECIMAL_MAX_PRECISION); 00358 }
Here is the call graph for this function:

Here is the caller graph for this function:

| CHARSET_INFO * Item::default_charset | ( | ) | [static] |
Definition at line 807 of file item.cc.
References current_thd.
Referenced by Item_func_case::find_item(), Item_func_hex::fix_length_and_dec(), Item_func_conv::fix_length_and_dec(), Item_func_format::fix_length_and_dec(), Item_uint::print(), Item_proc_string::set(), Item_proc::set(), Item_func_case::val_decimal(), Item_func_case::val_int(), Item_func_case::val_real(), Item_proc_int::val_str(), Item_proc_real::val_str(), Item_func_export_set::val_str(), Item_func_hex::val_str(), Item_func_conv::val_str(), Item_func_format::val_str(), Item_cache_real::val_str(), and Item_cache_int::val_str().
00808 { 00809 return current_thd->variables.collation_connection; 00810 }
Here is the caller graph for this function:

| void Item::delete_self | ( | ) | [inline] |
Definition at line 852 of file item.h.
References cleanup().
Referenced by free_items().
00853 { 00854 cleanup(); 00855 delete this; 00856 }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_cache_row, Item_row, and Item_singlerow_subselect.
Definition at line 839 of file item.h.
Referenced by Item_func_group_concat::add(), cmp_item_row::cmp(), Item_in_optimizer::fix_left(), Item_func_interval::fix_length_and_dec(), Item_in_subselect::row_value_transformer(), Item_cache_row::setup(), split_sum_func2(), Item_cache_row::store(), cmp_item_row::store_value(), cmp_item_row::store_value_by_template(), and Item_func_interval::val_int().
Here is the caller graph for this function:

Reimplemented in Item_field, Item_null, Item_param, Item_int, Item_decimal, Item_float, Item_string, Item_hex_string, Item_ref, Item_direct_view_ref, Item_default_value, Item_insert_value, Item_trigger_field, Item_func, Item_func_get_user_var, Item_func_match, Item_func_set_collation, Item_func_date_format, Item_date_add_interval, Item_extract, and Item_char_typecast.
Definition at line 624 of file item.cc.
References my_strcasecmp, name, system_charset_info, and type().
Referenced by change_cond_ref_to_const(), change_group_ref(), const_expression_in_where(), Item_func_match::eq(), Item_ref::eq(), remove_eq_conds(), and test_if_ref().
00625 { 00626 /* 00627 Note, that this is never TRUE if item is a Item_param: 00628 for all basic constants we have special checks, and Item_param's 00629 type() can be only among basic constant types. 00630 */ 00631 return type() == item->type() && name && item->name && 00632 !my_strcasecmp(system_charset_info,name,item->name); 00633 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual cond_result Item::eq_cmp_result | ( | ) | const [inline, virtual] |
Reimplemented in Item_func_eq, Item_func_equal, Item_func_ge, Item_func_gt, Item_func_le, Item_func_lt, Item_func_ne, and Item_func_like.
Definition at line 690 of file item.h.
References COND_OK.
00690 { return COND_OK; }
Reimplemented in Item_field.
Definition at line 820 of file item.h.
Referenced by build_equal_items_for_cond().
Here is the caller graph for this function:

| enum_field_types Item::field_type | ( | ) | const [virtual] |
Reimplemented in Item_field, Item_null, Item_param, Item_int, Item_decimal, Item_float, Item_string, Item_datetime, Item_return_int, Item_hex_string, Item_ref, Item_copy_string, Item_type_holder, Item_func_ifnull, Item_decimal_typecast, Item_func_get_user_var, Item_func_sp, Item_avg_field, Item_variance_field, Item_std_field, Item_sum_std, Item_sum_hybrid, Item_func_group_concat, Item_date, Item_date_func, Item_func_curtime, Item_func_sec_to_time, Item_date_add_interval, Item_date_typecast, Item_time_typecast, Item_datetime_typecast, Item_func_makedate, Item_func_add_time, Item_func_timediff, Item_func_maketime, Item_func_str_to_date, Item_proc, Item_proc_real, Item_proc_int, and Item_proc_string.
Definition at line 3923 of file item.cc.
References DBUG_ASSERT, DECIMAL_RESULT, FIELD_TYPE_DOUBLE, FIELD_TYPE_LONGLONG, FIELD_TYPE_NEWDECIMAL, INT_RESULT, MYSQL_TYPE_VARCHAR, REAL_RESULT, result_type(), ROW_RESULT, and STRING_RESULT.
Referenced by create_tmp_field_for_schema(), create_tmp_field_from_item(), Item_sum_hybrid::fix_fields(), Item_func_add_time::fix_length_and_dec(), Item_date_add_interval::fix_length_and_dec(), Item_sum_distinct::fix_length_and_dec(), Item_func_ifnull::fix_length_and_dec(), Item_func_year::get_monotonicity_info(), Item_func_to_days::get_monotonicity_info(), Item_type_holder::get_real_type(), Item_copy_string::Item_copy_string(), Item_sum::make_field(), make_field(), make_string_field(), send(), and tmp_table_field_from_field_type().
03924 { 03925 switch (result_type()) { 03926 case STRING_RESULT: return MYSQL_TYPE_VARCHAR; 03927 case INT_RESULT: return FIELD_TYPE_LONGLONG; 03928 case DECIMAL_RESULT: return FIELD_TYPE_NEWDECIMAL; 03929 case REAL_RESULT: return FIELD_TYPE_DOUBLE; 03930 case ROW_RESULT: 03931 default: 03932 DBUG_ASSERT(0); 03933 return MYSQL_TYPE_VARCHAR; 03934 } 03935 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual Item_field* Item::filed_for_view_update | ( | ) | [inline, virtual] |
Reimplemented in Item_field, Item_ref, and Item_func_set_collation.
Definition at line 848 of file item.h.
Referenced by check_fields(), check_view_insertability(), Item_func_set_collation::filed_for_view_update(), fill_record(), and insert_view_fields().
Here is the caller graph for this function:

Reimplemented in Item_field.
Definition at line 792 of file item.h.
Referenced by get_best_group_min_max().
Here is the caller graph for this function:

Reimplemented in Item_sp_variable, Item_name_const, Item_field, Item_ref, Item_direct_view_ref, Item_default_value, Item_insert_value, Item_trigger_field, Item_in_optimizer, Item_func_between, Item_func_if, Item_func_case, Item_func_in, Item_func_like, Item_cond, Item_equal, Item_func, Item_func_connection_id, Item_func_rand, Item_func_set_user_var, Item_user_var_as_out_param, Item_func_get_system_var, Item_func_match, Item_func_sp, Item_row, Item_func_user, Item_func_current_user, Item_func_make_set, Item_subselect, Item_in_subselect, Item_sum_num, Item_sum_hybrid, Item_func_group_concat, Item_func_convert_tz, and Item_sum_unique_users.
Definition at line 2924 of file item.cc.
References basic_const_item(), DBUG_ASSERT, FALSE, and fixed.
Referenced by set_var::check(), check_view_insertability(), create_view_field(), find_order_in_list(), Item_sum_hybrid::fix_fields(), Item_in_subselect::fix_fields(), Item_func_make_set::fix_fields(), Item_user_var_as_out_param::fix_fields(), Item_func_like::fix_fields(), Item_cond::fix_fields(), Item_insert_value::fix_fields(), Item_default_value::fix_fields(), Item_name_const::fix_fields(), Item_xml_str_func::fix_length_and_dec(), Event_timed::init_ends(), Event_timed::init_execute_at(), Event_timed::init_interval(), Event_timed::init_starts(), set_var::light_check(), mysql_execute_command(), mysql_ha_read(), mysql_schema_table(), JOIN::optimize(), st_table_list::prep_check_option(), st_table_list::prep_where(), JOIN::prepare(), Item_in_subselect::row_value_transformer(), Item_in_subselect::select_in_like_transformer(), simplify_joins(), and Item_in_subselect::single_value_transformer().
02925 { 02926 02927 // We do not check fields which are fixed during construction 02928 DBUG_ASSERT(fixed == 0 || basic_const_item()); 02929 fixed= 1; 02930 return FALSE; 02931 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 691 of file item.h.
References decimals, and NOT_FIXED_DEC.
Referenced by Item_func_int_val::find_num_type(), Item_func_num1::find_num_type(), Item_num_op::find_num_type(), Item_sum_hybrid::fix_fields(), Item_sum_num::fix_fields(), Item_func_units::fix_length_and_dec(), Item_dec_func::fix_length_and_dec(), Item_real_func::fix_length_and_dec(), Item_func_round::fix_length_and_dec(), Item_func_integer::fix_length_and_dec(), Item_func_div::fix_length_and_dec(), Hybrid_type_traits::fix_length_and_dec(), Item_sum::fix_num_length_and_dec(), Item_func_int_val::fix_num_length_and_dec(), Item_func::fix_num_length_and_dec(), and Item_proc_real::Item_proc_real().
00692 { return decimals != NOT_FIXED_DEC ? (DBL_DIG+2+decimals_par) : DBL_DIG+8;}
Here is the caller graph for this function:

| virtual const char* Item::full_name | ( | ) | const [inline, virtual] |
Reimplemented in Item_ident.
Definition at line 654 of file item.h.
References name.
Referenced by check_group_min_max_predicates(), find_field_in_group_list(), find_order_in_list(), get_store_key(), and print().
Here is the caller graph for this function:

Reimplemented in Item_field, Item_param, Item_ref, Item_direct_ref, Item_ref_null_helper, Item_func_curdate, Item_func_now, Item_func_sysdate_local, Item_func_from_days, Item_func_from_unixtime, Item_func_convert_tz, Item_date_add_interval, Item_date_typecast, Item_func_str_to_date, and Item_func_last_day.
Definition at line 775 of file item.cc.
References bzero, String::length(), my_charset_bin, MYSQL_TIMESTAMP_ERROR, String::ptr(), str_to_datetime_with_warn(), and val_str().
Referenced by Item_func::get_arg0_date(), Item_param::get_date(), get_date_result(), Event_timed::init_ends(), Event_timed::init_execute_at(), Event_timed::init_starts(), Item_date::save_in_field(), send(), Item_func_timestamp_diff::val_int(), Item_date::val_int(), and Item_date::val_str().
00776 { 00777 char buff[40]; 00778 String tmp(buff,sizeof(buff), &my_charset_bin),*res; 00779 if (!(res=val_str(&tmp)) || 00780 str_to_datetime_with_warn(res->ptr(), res->length(), 00781 ltime, fuzzydate) <= MYSQL_TIMESTAMP_ERROR) 00782 { 00783 bzero((char*) ltime,sizeof(*ltime)); 00784 return 1; 00785 } 00786 return 0; 00787 }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_field.
Definition at line 729 of file item.h.
References get_date().
00730 { return get_date(ltime,fuzzydate); }
Here is the call graph for this function:

| virtual enum_monotonicity_info Item::get_monotonicity_info | ( | ) | const [inline, virtual] |
Reimplemented in Item_field, Item_func_to_days, and Item_func_year.
Definition at line 547 of file item.h.
References NON_MONOTONIC.
00548 { return NON_MONOTONIC; }
| virtual Settable_routine_parameter* Item::get_settable_routine_parameter | ( | ) | [inline, virtual] |
Reimplemented in Item_splocal, Item_trigger_field, and Item_func_get_user_var.
Definition at line 864 of file item.h.
Reimplemented in Item_field, Item_param, and Item_time_typecast.
Definition at line 794 of file item.cc.
References bzero, String::length(), my_charset_bin, String::ptr(), str_to_time_with_warn(), and val_str().
Referenced by Item_func::get_arg0_time(), Item_param::get_time(), send(), Item_func_timediff::val_str(), and Item_func_add_time::val_str().
00795 { 00796 char buff[40]; 00797 String tmp(buff,sizeof(buff),&my_charset_bin),*res; 00798 if (!(res=val_str(&tmp)) || 00799 str_to_time_with_warn(res->ptr(), res->length(), ltime)) 00800 { 00801 bzero((char*) ltime,sizeof(*ltime)); 00802 return 1; 00803 } 00804 return 0; 00805 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual Field* Item::get_tmp_table_field | ( | ) | [inline, virtual] |
Reimplemented in Item_field, Item_result_field, and Item_ref.
Definition at line 651 of file item.h.
Referenced by change_to_use_tmp_fields(), end_write(), group_concat_key_cmp_with_order(), remove_duplicates(), and JOIN::rollup_make_fields().
Here is the caller graph for this function:

| virtual Item* Item::get_tmp_table_item | ( | THD * | thd | ) | [inline, virtual] |
Reimplemented in Item_field, Item_ref, Item_func, Item_subselect, and Item_sum.
Definition at line 767 of file item.h.
References copy_or_same().
Referenced by change_refs_to_tmp_fields(), and change_to_use_tmp_fields().
00767 { return copy_or_same(thd); }
Here is the call graph for this function:

Here is the caller graph for this function:

| void Item::init_make_field | ( | Send_field * | tmp_field, | |
| enum enum_field_types | type | |||
| ) |
Definition at line 3886 of file item.cc.
References BINARY_FLAG, Send_field::charsetnr, Send_field::col_name, DTCollation::collation, collation, Send_field::db_name, decimals, Send_field::decimals, Send_field::flags, Send_field::length, max_length, maybe_null, my_binary_compare, name, NOT_NULL_FLAG, charset_info_st::number, Send_field::org_col_name, Send_field::org_table_name, Send_field::table_name, Send_field::type, UNSIGNED_FLAG, and unsigned_flag.
Referenced by Item_proc::make_field(), Item_sum::make_field(), Item_func_sp::make_field(), Item_empty_string::make_field(), and make_field().
03888 { 03889 char *empty_name= (char*) ""; 03890 tmp_field->db_name= empty_name; 03891 tmp_field->org_table_name= empty_name; 03892 tmp_field->org_col_name= empty_name; 03893 tmp_field->table_name= empty_name; 03894 tmp_field->col_name= name; 03895 tmp_field->charsetnr= collation.collation->number; 03896 tmp_field->flags= (maybe_null ? 0 : NOT_NULL_FLAG) | 03897 (my_binary_compare(collation.collation) ? 03898 BINARY_FLAG : 0); 03899 tmp_field->type=field_type; 03900 tmp_field->length=max_length; 03901 tmp_field->decimals=decimals; 03902 if (unsigned_flag) 03903 tmp_field->flags |= UNSIGNED_FLAG; 03904 }
Here is the caller graph for this function:

| virtual bool Item::is_bool_func | ( | ) | [inline, virtual] |
Reimplemented in Item_bool_func, Item_bool_func2, Item_func_between, Item_func_in, Item_bool, Item_xpath_cast_bool, and Item_nodeset_to_const_comparator.
Definition at line 758 of file item.h.
Referenced by my_xpath_parse_AxisSpecifier_NodeTest_opt_Predicate_list(), and Item_nodeset_func_elementbyindex::val_nodeset().
Here is the caller graph for this function:

| virtual bool Item::is_null | ( | ) | [inline, virtual] |
Reimplemented in Item_sp_variable, Item_name_const, Item_field, Item_null, Item_param, Item_ref, Item_direct_ref, Item_copy_string, Item_in_optimizer, Item_bool_func2, Item_func_nullif, Item_func, Item_func_numhybrid, Item_row, Item_subselect, Item_sum, Item_avg_field, and Item_variance_field.
Definition at line 739 of file item.h.
Referenced by Item_row::fix_fields(), in_row::get_value(), Item_in_optimizer::is_null(), Item_name_const::is_null(), Item_sp_variable::is_null(), join_read_always_key(), merge_key_fields(), Item_func_isnotnull::val_int(), and Item_func_isnull::val_int().
Here is the caller graph for this function:

| virtual bool Item::is_result_field | ( | ) | [inline, virtual] |
Reimplemented in Item_null_result, Item_result_field, and Item_ref.
Definition at line 757 of file item.h.
Referenced by create_tmp_field_from_item(), and JOIN::rollup_write_data().
Here is the caller graph for this function:

| virtual bool Item::is_splocal | ( | ) | [inline, virtual] |
| void Item::make_field | ( | Send_field * | field | ) | [virtual] |
Reimplemented in Item_sp_variable, Item_ident_for_show, Item_field, Item_empty_string, Item_ref, Item_copy_string, Item_cache_row, Item_func_sp, Item_row, Item_sum, and Item_proc.
Definition at line 3906 of file item.cc.
References field_type(), and init_make_field().
Referenced by Item_copy_string::make_field(), Item_sp_variable::make_field(), and Protocol::send_fields().
03907 { 03908 init_make_field(tmp_field, field_type()); 03909 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3952 of file item.cc.
References DTCollation::collation, collation, CONVERT_IF_BIGGER_TO_BLOB, DBUG_ASSERT, field_type(), Field::init(), max_length, maybe_null, charset_info_st::mbmaxlen, MYSQL_TYPE_STRING, name, st_table::s, type(), and TYPE_HOLDER.
Referenced by Item_sum::create_tmp_field(), create_tmp_field_from_item(), Item_func::tmp_table_field(), and tmp_table_field_from_field_type().
03953 { 03954 Field *field; 03955 DBUG_ASSERT(collation.collation); 03956 if (max_length/collation.collation->mbmaxlen > CONVERT_IF_BIGGER_TO_BLOB) 03957 field= new Field_blob(max_length, maybe_null, name, 03958 collation.collation); 03959 /* Item_type_holder holds the exact type, do not change it */ 03960 else if (max_length > 0 && 03961 (type() != Item::TYPE_HOLDER || field_type() != MYSQL_TYPE_STRING)) 03962 field= new Field_varstring(max_length, maybe_null, name, table->s, 03963 collation.collation); 03964 else 03965 field= new Field_string(max_length, maybe_null, name, 03966 collation.collation); 03967 if (field) 03968 field->init(table); 03969 return field; 03970 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual Item* Item::neg_transformer | ( | THD * | thd | ) | [inline, virtual] |
Reimplemented in Item_bool_rowready_func2, Item_func_not, Item_func_not_all, Item_func_nop_all, Item_func_equal, Item_func_opt_neg, Item_func_isnull, Item_func_isnotnull, Item_cond_and, and Item_cond_or.
Definition at line 850 of file item.h.
References NULL.
Referenced by Item_cond::neg_arguments(), and negate_expression().
00850 { return NULL; }
Here is the caller graph for this function:

| virtual Item* Item::new_item | ( | ) | [inline, virtual] |
Reimplemented in Item_null, Item_param, Item_int, Item_uint, Item_decimal, Item_float, Item_string, and Item_int_with_ref.
Definition at line 689 of file item.h.
Referenced by Item_field::get_tmp_table_item(), Item_cond::neg_arguments(), Item_func_not_all::neg_transformer(), Item_func_nop_all::neg_transformer(), split_sum_func2(), Item_func_make_set::transform(), Item_row::transform(), Item_func::transform(), Item_equal::transform(), Item_cond::transform(), and Item_default_value::transform().
Here is the caller graph for this function:

| virtual void Item::no_rows_in_result | ( | ) | [inline, virtual] |
Reimplemented in Item_sum, Item_sum_sum, Item_sum_distinct, Item_sum_count, Item_sum_count_distinct, Item_sum_avg, Item_sum_variance, Item_sum_hybrid, and Item_func_group_concat.
Definition at line 763 of file item.h.
Referenced by end_send_group(), and return_zero_rows().
Here is the caller graph for this function:

| virtual table_map Item::not_null_tables | ( | ) | const [inline, virtual] |
Reimplemented in Item_ref, Item_func_equal, Item_func_coalesce, Item_func_nullif, Item_func_case, Item_func_isnull, Item_func_isnotnull, Item_cond_and, Item_cond_or, Item_func, Item_func_coercibility, Item_func_match, Item_func_concat_ws, Item_func_charset, Item_func_collation, and Item_subselect.
Definition at line 682 of file item.h.
References used_tables().
Referenced by and_expressions(), Item_equal::fix_fields(), Item_cond::fix_fields(), Item_func_if::fix_fields(), Item_func_between::fix_fields(), Item_in_optimizer::fix_fields(), Item_in_optimizer::fix_left(), Item_func_make_set::fix_length_and_dec(), Item_func_interval::fix_length_and_dec(), and simplify_joins().
00682 { return used_tables(); }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual bool Item::null_inside | ( | ) | [inline, virtual] |
Reimplemented in Item_cache_row, Item_row, and Item_singlerow_subselect.
Definition at line 843 of file item.h.
Referenced by Item_row::fix_fields().
Here is the caller graph for this function:

| static void Item::operator delete | ( | void * | ptr, | |
| MEM_ROOT * | mem_root | |||
| ) | [inline, static] |
| static void Item::operator delete | ( | void * | ptr, | |
| size_t | size | |||
| ) | [inline, static] |
Definition at line 453 of file item.h.
References alloc_root().
00454 { return (void*) alloc_root(mem_root, (uint) size); }
Here is the call graph for this function:

| static void* Item::operator new | ( | size_t | size | ) | [inline, static] |
Definition at line 451 of file item.h.
References sql_alloc().
Here is the call graph for this function:

| void Item::operator= | ( | Item & | ) | [private] |
| virtual void Item::print | ( | String * | str_arg | ) | [inline, virtual] |
Reimplemented in Item_splocal, Item_case_expr, Item_name_const, Item_ident, Item_null, Item_param, Item_int, Item_uint, Item_decimal, Item_float, Item_static_float_func, Item_string, Item_static_string_func, Item_ref, Item_ref_null_helper, Item_default_value, Item_insert_value, Item_trigger_field, Item_cache, Item_bool_func2, Item_func_not_all, Item_func_between, Item_func_strcmp, Item_func_nullif, Item_func_case, Item_func_in, Item_func_isnotnull, Item_func_regex, Item_cond, Item_equal, Item_func, Item_num_op, Item_func_signed, Item_func_unsigned, Item_decimal_typecast, Item_func_int_div, Item_func_locate, Item_func_bit, Item_func_bit_neg, Item_func_benchmark, Item_func_set_user_var, Item_func_get_user_var, Item_user_var_as_out_param, Item_func_match, Item_row, Item_func_trim, Item_func_make_set, Item_func_format, Item_func_binary, Item_func_conv_charset, Item_func_set_collation, Item_subselect, Item_maxmin_subselect, Item_exists_subselect, Item_in_subselect, Item_allany_subselect, Item_sum, Item_func_group_concat, Item_date_add_interval, Item_extract, Item_typecast, Item_char_typecast, Item_func_add_time, Item_func_timestamp_diff, Item_func_get_format, Item_func_unique_users, and Item_sum_unique_users.
Definition at line 719 of file item.h.
References String::append(), and full_name().
Referenced by sp_instr_set_case_expr::print(), sp_instr_freturn::print(), sp_instr_jump_if_not::print(), sp_instr_set_trigger_field::print(), sp_instr_set::print(), Item_func_get_format::print(), Item_func_timestamp_diff::print(), Item_func_add_time::print(), Item_char_typecast::print(), Item_typecast::print(), Item_extract::print(), Item_date_add_interval::print(), Item_func_group_concat::print(), Item_sum::print(), subselect_indexsubquery_engine::print(), subselect_uniquesubquery_engine::print(), Item_allany_subselect::print(), Item_in_subselect::print(), Item_func_binary::print(), Item_func_set_collation::print(), Item_func_conv_charset::print(), Item_func_make_set::print(), Item_func_format::print(), Item_func_trim::print(), Item_row::print(), Item_func_match::print(), Item_func_set_user_var::print(), Item_func_benchmark::print(), Item_func_locate::print(), Item_decimal_typecast::print(), Item_func_unsigned::print(), Item_func_signed::print(), Item_equal::print(), Item_func_isnotnull::print(), Item_cond::print(), Item_func_in::print(), Item_func_case::print(), Item_func_between::print(), Item_func_not_all::print(), Item_cache::print(), Item_insert_value::print(), Item_default_value::print(), Item_name_const::print(), Item_func::print_args(), Item_func_set_user_var::print_as_stmt(), print_item_w_name(), Item_func::print_op(), and select_describe().
Here is the call graph for this function:

Here is the caller graph for this function:

| void Item::print_item_w_name | ( | String * | ) |
Definition at line 361 of file item.cc.
References String::append(), append_identifier(), current_thd, name, print(), STRING_WITH_LEN, and strlen().
00362 { 00363 print(str); 00364 if (name) 00365 { 00366 THD *thd= current_thd; 00367 str->append(STRING_WITH_LEN(" AS ")); 00368 append_identifier(thd, str, name, (uint) strlen(name)); 00369 } 00370 }
Here is the call graph for this function:

| void Item::quick_fix_field | ( | ) | [inline] |
Definition at line 527 of file item.h.
References fixed.
Referenced by add_cond_and_fix(), add_found_match_trig_cond(), JOIN::exec(), Item_func_match::init_search(), make_cond_for_info_schema(), make_cond_for_table(), and mysql_execute_command().
00527 { fixed= 1; }
Here is the caller graph for this function:

| virtual Item* Item::real_item | ( | ) | [inline, virtual] |
Reimplemented in Item_ref, and Item_int_with_ref.
Definition at line 766 of file item.h.
Referenced by add_key_fields(), check_duplicate_names(), count_field_types(), create_tmp_field(), find_field_in_view(), Item_default_value::fix_fields(), Item_bool_func2::fix_length_and_dec(), get_mm_tree(), new_Cached_item(), opt_sum_query(), Item_ref::real_item(), split_sum_func2(), and uses_only_table_name_fields().
Here is the caller graph for this function:

Reimplemented in Item_field.
Definition at line 795 of file item.h.
Referenced by find_all_keys(), find_field_in_table_ref(), and register_used_fields().
Here is the caller graph for this function:

Reimplemented in Item_ident.
Definition at line 788 of file item.h.
Referenced by Item_singlerow_subselect::select_transformer().
Here is the caller graph for this function:

| void Item::rename | ( | char * | new_name | ) |
Reimplemented in Item_field.
Definition at line 822 of file item.h.
Referenced by substitute_for_best_equal_field().
Here is the caller graph for this function:

| virtual bool Item::result_as_longlong | ( | ) | [inline, virtual] |
Reimplemented in Item_field, Item_ref, Item_date, Item_date_func, Item_func_curtime, Item_func_sec_to_time, Item_date_typecast, Item_time_typecast, Item_datetime_typecast, and Item_func_makedate.
Definition at line 875 of file item.h.
References FALSE.
00875 { return FALSE; }
| virtual Item_result Item::result_type | ( | ) | const [inline, virtual] |
Reimplemented in Item_splocal, Item_case_expr, Item_name_const, Item_field, Item_null, Item_param, Item_int, Item_decimal, Item_string, Item_hex_string, Item_ref, Item_copy_string, Item_cache_int, Item_cache_real, Item_cache_decimal, Item_cache_str, Item_cache_row, Item_type_holder, Item_func_coalesce, Item_func_if, Item_func_nullif, Item_func_case, Item_real_func, Item_func_numhybrid, Item_int_func, Item_decimal_typecast, Item_func_min_max, Item_func_udf_str, Item_func_set_user_var, Item_func_get_user_var, Item_func_sp, Item_row, Item_str_func, Item_singlerow_subselect, Item_exists_subselect, Item_sum_int, Item_sum_sum, Item_sum_distinct, Item_avg_field, Item_variance_field, Item_sum_variance, Item_std_field, Item_sum_std, Item_sum_hybrid, Item_sum_udf_str, Item_func_group_concat, Item_func_month, Item_func_monthname, Item_func_weekday, Item_func_dayname, Item_date, Item_func_curtime, Item_func_now, Item_nodeset_func, Item_proc_real, Item_proc_int, and Item_proc_string.
Definition at line 537 of file item.h.
References REAL_RESULT.
Referenced by agg_cmp_type(), cast_to_int_type(), change_cond_ref_to_const(), sys_var_thd_storage_engine::check(), set_var::check(), sys_var_character_set::check(), sys_var_collation::check(), sys_var::check_enum(), check_equality(), sys_var::check_set(), Item_sum::create_tmp_field(), create_tmp_field_from_item(), decimal_precision(), field_is_equal_to_item(), field_type(), Item_num_op::find_num_type(), Item_sum_hybrid::fix_fields(), Item_func_set_user_var::fix_fields(), Item_char_typecast::fix_length_and_dec(), Item_func_field::fix_length_and_dec(), Item_func_min_max::fix_length_and_dec(), Item_equal::fix_length_and_dec(), Item_func_nullif::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Item_func_interval::fix_length_and_dec(), Item_type_holder::get_real_type(), new_Cached_item(), proc_analyse_init(), resolve_const_item(), Item_name_const::result_type(), Item_case_expr::result_type(), save_in_field(), sp_rcontext::set_case_expr(), set_row(), Item_cache_row::setup(), sp_get_item_value(), cmp_item_row::store_value(), Item_func::tmp_table_field(), val_bool(), and Item_func_interval::val_int().
00537 { return REAL_RESULT; }
Here is the caller graph for this function:

| Item * Item::safe_charset_converter | ( | CHARSET_INFO * | tocs | ) | [virtual] |
Reimplemented in Item_num, Item_field, Item_null, Item_param, Item_static_float_func, Item_string, Item_static_string_func, Item_hex_string, and Item_func_sysconst.
Definition at line 636 of file item.cc.
References NULL, and Item_func_conv_charset::safe.
Referenced by mysql_prepare_table(), and Item_field::safe_charset_converter().
00637 { 00638 Item_func_conv_charset *conv= new Item_func_conv_charset(this, tocs, 1); 00639 return conv->safe ? conv : NULL; 00640 }
Here is the caller graph for this function:

Reimplemented in Item_sp_variable, Item_name_const, Item_field, Item_null, Item_param, Item_int, Item_uint, Item_decimal, Item_float, Item_string, Item_hex_string, Item_ref, Item_int_with_ref, Item_copy_string, Item_default_value, Item_insert_value, Item_date, Item_func_now, and Item_func_sysdate_local.
Definition at line 4175 of file item.cc.
References DTCollation::collation, collation, DECIMAL_RESULT, error, MAX_FIELD_WIDTH, null_value, REAL_RESULT, Field::result_type(), result_type(), set_field_to_null(), set_field_to_null_with_conversions(), Field::set_notnull(), String::set_quick(), Field::store(), str_value, STRING_RESULT, unsigned_flag, val_decimal(), val_int(), val_real(), val_str(), and value.
Referenced by Item_sum_distinct::add(), store_key_const_item::copy(), store_key_item::copy(), make_empty_rec(), mysql_ha_read(), Item_int_with_ref::save_in_field(), Item_name_const::save_in_field(), Item_sp_variable::save_in_field(), save_in_field_no_warnings(), Item_result_field::save_in_result_field(), save_org_in_field(), save_safe_in_field(), Item_trigger_field::set_value(), sp_eval_expr(), and store_val_in_field().
04176 { 04177 int error; 04178 if (result_type() == STRING_RESULT || 04179 result_type() == REAL_RESULT && 04180 field->result_type() == STRING_RESULT) 04181 { 04182 String *result; 04183 CHARSET_INFO *cs= collation.collation; 04184 char buff[MAX_FIELD_WIDTH]; // Alloc buffer for small columns 04185 str_value.set_quick(buff, sizeof(buff), cs); 04186 result=val_str(&str_value); 04187 if (null_value) 04188 { 04189 str_value.set_quick(0, 0, cs); 04190 return set_field_to_null_with_conversions(field, no_conversions); 04191 } 04192 04193 /* NOTE: If null_value == FALSE, "result" must be not NULL. */ 04194 04195 field->set_notnull(); 04196 error=field->store(result->ptr(),result->length(),cs); 04197 str_value.set_quick(0, 0, cs); 04198 } 04199 else if (result_type() == REAL_RESULT) 04200 { 04201 double nr= val_real(); 04202 if (null_value) 04203 return set_field_to_null(field); 04204 field->set_notnull(); 04205 error=field->store(nr); 04206 } 04207 else if (result_type() == DECIMAL_RESULT) 04208 { 04209 my_decimal decimal_value; 04210 my_decimal *value= val_decimal(&decimal_value); 04211 if (null_value) 04212 return set_field_to_null(field); 04213 field->set_notnull(); 04214 error=field->store_decimal(value); 04215 } 04216 else 04217 { 04218 longlong nr=val_int(); 04219 if (null_value) 04220 return set_field_to_null_with_conversions(field, no_conversions); 04221 field->set_notnull(); 04222 error=field->store(nr, unsigned_flag); 04223 } 04224 return error; 04225 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 821 of file item.cc.
References CHECK_FIELD_IGNORE, dbug_tmp_restore_column_map(), dbug_tmp_use_all_columns(), st_table::in_use, save_in_field(), Field::table, and st_table::write_set.
00822 { 00823 int res; 00824 TABLE *table= field->table; 00825 THD *thd= table->in_use; 00826 enum_check_fields tmp= thd->count_cuted_fields; 00827 my_bitmap_map *old_map= dbug_tmp_use_all_columns(table, table->write_set); 00828 thd->count_cuted_fields= CHECK_FIELD_IGNORE; 00829 res= save_in_field(field, no_conversions); 00830 thd->count_cuted_fields= tmp; 00831 dbug_tmp_restore_column_map(table->write_set, old_map); 00832 return res; 00833 }
Here is the call graph for this function:

| virtual void Item::save_in_result_field | ( | bool | no_conversions | ) | [inline, virtual] |
Reimplemented in Item_null_result, Item_result_field, and Item_ref.
Definition at line 759 of file item.h.
Referenced by JOIN::rollup_write_data().
Here is the caller graph for this function:

| virtual void Item::save_org_in_field | ( | Field * | field | ) | [inline, virtual] |
Reimplemented in Item_field, and Item_ref.
Definition at line 531 of file item.h.
References save_in_field().
Referenced by end_update().
00532 { (void) save_in_field(field, 1); }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual int Item::save_safe_in_field | ( | Field * | field | ) | [inline, virtual] |
Reimplemented in Item_null.
Definition at line 533 of file item.h.
References save_in_field().
00534 { return save_in_field(field, 1); }
Here is the call graph for this function:

Reimplemented in Item_sp_variable, Item_name_const, Item_field, Item_null, and Item_ref.
Definition at line 4541 of file item.cc.
References buffer, String::charset(), decimals, field_type(), get_date(), get_time(), String::length(), LINT_INIT, MYSQL_TYPE_BIT, MYSQL_TYPE_BLOB, MYSQL_TYPE_DATE, MYSQL_TYPE_DATETIME, MYSQL_TYPE_DECIMAL, MYSQL_TYPE_DOUBLE, MYSQL_TYPE_ENUM, MYSQL_TYPE_FLOAT, MYSQL_TYPE_GEOMETRY, MYSQL_TYPE_INT24, MYSQL_TYPE_LONG, MYSQL_TYPE_LONG_BLOB, MYSQL_TYPE_LONGLONG, MYSQL_TYPE_MEDIUM_BLOB, MYSQL_TYPE_NEWDECIMAL, MYSQL_TYPE_NULL, MYSQL_TYPE_SET, MYSQL_TYPE_SHORT, MYSQL_TYPE_STRING, MYSQL_TYPE_TIME, MYSQL_TYPE_TIMESTAMP, MYSQL_TYPE_TINY, MYSQL_TYPE_TINY_BLOB, MYSQL_TYPE_VAR_STRING, MYSQL_TYPE_VARCHAR, MYSQL_TYPE_YEAR, null_value, String::ptr(), Protocol::store(), Protocol::store_date(), Protocol::store_long(), Protocol::store_longlong(), Protocol::store_null(), Protocol::store_short(), Protocol::store_time(), Protocol::store_tiny(), TIME_FUZZY_DATE, type(), unsigned_flag, val_int(), val_real(), and val_str().
Referenced by mysql_ha_read(), Item_name_const::send(), Item_sp_variable::send(), and Protocol::send_fields().
04542 { 04543 bool result; 04544 enum_field_types type; 04545 LINT_INIT(result); // Will be set if null_value == 0 04546 04547 switch ((type=field_type())) { 04548 default: 04549 case MYSQL_TYPE_NULL: 04550 case MYSQL_TYPE_DECIMAL: 04551 case MYSQL_TYPE_ENUM: 04552 case MYSQL_TYPE_SET: 04553 case MYSQL_TYPE_TINY_BLOB: 04554 case MYSQL_TYPE_MEDIUM_BLOB: 04555 case MYSQL_TYPE_LONG_BLOB: 04556 case MYSQL_TYPE_BLOB: 04557 case MYSQL_TYPE_GEOMETRY: 04558 case MYSQL_TYPE_STRING: 04559 case MYSQL_TYPE_VAR_STRING: 04560 case MYSQL_TYPE_VARCHAR: 04561 case MYSQL_TYPE_BIT: 04562 case MYSQL_TYPE_NEWDECIMAL: 04563 { 04564 String *res; 04565 if ((res=val_str(buffer))) 04566 result= protocol->store(res->ptr(),res->length(),res->charset()); 04567 break; 04568 } 04569 case MYSQL_TYPE_TINY: 04570 { 04571 longlong nr; 04572 nr= val_int(); 04573 if (!null_value) 04574 result= protocol->store_tiny(nr); 04575 break; 04576 } 04577 case MYSQL_TYPE_SHORT: 04578 case MYSQL_TYPE_YEAR: 04579 { 04580 longlong nr; 04581 nr= val_int(); 04582 if (!null_value) 04583 result= protocol->store_short(nr); 04584 break; 04585 } 04586 case MYSQL_TYPE_INT24: 04587 case MYSQL_TYPE_LONG: 04588 { 04589 longlong nr; 04590 nr= val_int(); 04591 if (!null_value) 04592 result= protocol->store_long(nr); 04593 break; 04594 } 04595 case MYSQL_TYPE_LONGLONG: 04596 { 04597 longlong nr; 04598 nr= val_int(); 04599 if (!null_value) 04600 result= protocol->store_longlong(nr, unsigned_flag); 04601 break; 04602 } 04603 case MYSQL_TYPE_FLOAT: 04604 { 04605 float nr; 04606 nr= (float) val_real(); 04607 if (!null_value) 04608 result= protocol->store(nr, decimals, buffer); 04609 break; 04610 } 04611 case MYSQL_TYPE_DOUBLE: 04612 { 04613 double nr= val_real(); 04614 if (!null_value) 04615 result= protocol->store(nr, decimals, buffer); 04616 break; 04617 } 04618 case MYSQL_TYPE_DATETIME: 04619 case MYSQL_TYPE_DATE: 04620 case MYSQL_TYPE_TIMESTAMP: 04621 { 04622 TIME tm; 04623 get_date(&tm, TIME_FUZZY_DATE); 04624 if (!null_value) 04625 { 04626 if (type == MYSQL_TYPE_DATE) 04627 return protocol->store_date(&tm); 04628 else 04629 result= protocol->store(&tm); 04630 } 04631 break; 04632 } 04633 case MYSQL_TYPE_TIME: 04634 { 04635 TIME tm; 04636 get_time(&tm); 04637 if (!null_value) 04638 result= protocol->store_time(&tm); 04639 break; 04640 } 04641 } 04642 if (null_value) 04643 result= protocol->store_null(); 04644 return result; 04645 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void Item::set_name | ( | const char * | str, | |
| uint | length, | |||
| CHARSET_INFO * | cs | |||
| ) |
Definition at line 579 of file item.cc.
References charset_info_st::ctype, current_thd, ER, ER_REMOVED_SPACES, is_autogenerated_name, MAX_ALIAS_NAME, min, my_charset_same(), my_isgraph, name, name_length, push_warning_printf(), sql_strmake(), sql_strmake_with_convert(), system_charset_info, and MYSQL_ERROR::WARN_LEVEL_WARN.
Referenced by create_select_for_variable(), find_field_in_view(), Item_func_get_system_var::fix_fields(), Item_name_const::fix_fields(), Item_func_get_system_var::Item_func_get_system_var(), Item_string::Item_string(), Item_sp_variable::make_field(), make_schemata_old_format(), make_table_names_old_format(), and make_unique_view_field_name().
00580 { 00581 if (!length) 00582 { 00583 /* Empty string, used by AS or internal function like last_insert_id() */ 00584 name= (char*) str; 00585 name_length= 0; 00586 return; 00587 } 00588 if (cs->ctype) 00589 { 00590 uint orig_len= length; 00591 /* 00592 This will probably need a better implementation in the future: 00593 a function in CHARSET_INFO structure. 00594 */ 00595 while (length && !my_isgraph(cs,*str)) 00596 { // Fix problem with yacc 00597 length--; 00598 str++; 00599 } 00600 if (orig_len != length && !is_autogenerated_name) 00601 push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, 00602 ER_REMOVED_SPACES, ER(ER_REMOVED_SPACES), 00603 str + length - orig_len); 00604 00605 } 00606 if (!my_charset_same(cs, system_charset_info)) 00607 { 00608 uint32 res_length; 00609 name= sql_strmake_with_convert(str, name_length= length, cs, 00610 MAX_ALIAS_NAME, system_charset_info, 00611 &res_length); 00612 } 00613 else 00614 name= sql_strmake(str, (name_length= min(length,MAX_ALIAS_NAME))); 00615 }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_field.
Definition at line 821 of file item.h.
Referenced by Arg_comparator::set_compare_func().
Here is the caller graph for this function:

| virtual void Item::set_result_field | ( | Field * | field | ) | [inline, virtual] |
Reimplemented in Item_result_field, and Item_ref.
Definition at line 756 of file item.h.
Referenced by create_tmp_field_from_item().
Here is the caller graph for this function:

| virtual void Item::split_sum_func | ( | THD * | thd, | |
| Item ** | ref_pointer_array, | |||
| List< Item > & | fields | |||
| ) | [inline, virtual] |
Reimplemented in Item_cond, Item_func, Item_row, and Item_func_make_set.
Definition at line 722 of file item.h.
Referenced by split_sum_func2().
Here is the caller graph for this function:

| void Item::split_sum_func2 | ( | THD * | thd, | |
| Item ** | ref_pointer_array, | |||
| List< Item > & | fields, | |||
| Item ** | ref, | |||
| bool | skip_registered | |||
| ) |
Definition at line 1154 of file item.cc.
References el(), base_list::elements, name, new_item(), PARAM_TABLE_BIT, List< T >::push_front(), real_item(), REF_ITEM, split_sum_func(), SUM_FUNC_ITEM, type(), used_tables(), Item_ref::VIEW_REF, and with_sum_func.
Referenced by JOIN::prepare(), Item_func_make_set::split_sum_func(), and Item_cond::split_sum_func().
01157 { 01158 /* An item of type Item_sum is registered <=> ref_by != 0 */ 01159 if (type() == SUM_FUNC_ITEM && skip_registered && 01160 ((Item_sum *) this)->ref_by) 01161 return; 01162 if (type() != SUM_FUNC_ITEM && with_sum_func) 01163 { 01164 /* Will split complicated items and ignore simple ones */ 01165 split_sum_func(thd, ref_pointer_array, fields); 01166 } 01167 else if ((type() == SUM_FUNC_ITEM || (used_tables() & ~PARAM_TABLE_BIT)) && 01168 (type() != REF_ITEM || 01169 ((Item_ref*)this)->ref_type() == Item_ref::VIEW_REF)) 01170 { 01171 /* 01172 Replace item with a reference so that we can easily calculate 01173 it (in case of sum functions) or copy it (in case of fields) 01174 01175 The test above is to ensure we don't do a reference for things 01176 that are constants (PARAM_TABLE_BIT is in effect a constant) 01177 or already referenced (for example an item in HAVING) 01178 Exception is Item_direct_view_ref which we need to convert to 01179 Item_ref to allow fields from view being stored in tmp table. 01180 */ 01181 uint el= fields.elements; 01182 Item *new_item, *real_itm= real_item(); 01183 01184 ref_pointer_array[el]= real_itm; 01185 if (!(new_item= new Item_ref(&thd->lex->current_select->context, 01186 ref_pointer_array + el, 0, name))) 01187 return; // fatal_error is set 01188 fields.push_front(real_itm); 01189 thd->change_item_tree(ref, new_item); 01190 } 01191 }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_field, and Item_ref.
Definition at line 664 of file item.h.
References val_str().
Referenced by make_sortkey(), and Item_cache_str::store().
00664 { return val_str(tmp); }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual const Item* Item::this_item | ( | ) | const [inline, virtual] |
| virtual Item* Item::this_item | ( | ) | [inline, virtual] |
Reimplemented in Item_splocal, and Item_case_expr.
Definition at line 828 of file item.h.
Referenced by Item_sp_variable::fix_fields(), Item_func_date_format::fix_length_and_dec(), Item_sp_variable::is_null(), Item_sp_variable::make_field(), Item_sp_variable::save_in_field(), Item_sp_variable::send(), Item_sp_variable::val_decimal(), Item_sp_variable::val_int(), Item_sp_variable::val_real(), and Item_sp_variable::val_str().
Here is the caller graph for this function:

Reimplemented in Item_splocal, and Item_case_expr.
Definition at line 835 of file item.h.
References addr().
Referenced by sp_prepare_func_item().
00835 { return addr; }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_field, Item_result_field, Item_func_ifnull, Item_func, Item_func_sp, Item_date, Item_date_func, Item_func_curtime, Item_func_sec_to_time, Item_date_typecast, Item_time_typecast, Item_datetime_typecast, Item_func_makedate, Item_func_add_time, Item_func_timediff, Item_func_maketime, and Item_func_str_to_date.
Definition at line 653 of file item.h.
Referenced by create_table_from_items().
Here is the caller graph for this function:

Definition at line 3984 of file item.cc.
References DTCollation::collation, collation, CONVERT_IF_BIGGER_TO_BLOB, DBUG_ASSERT, decimals, field_type(), make_string_field(), max_length, maybe_null, my_charset_bin, MYSQL_TYPE_BIT, MYSQL_TYPE_BLOB, MYSQL_TYPE_DATE, MYSQL_TYPE_DATETIME, MYSQL_TYPE_DECIMAL, MYSQL_TYPE_DOUBLE, MYSQL_TYPE_ENUM, MYSQL_TYPE_FLOAT, MYSQL_TYPE_GEOMETRY, MYSQL_TYPE_INT24, MYSQL_TYPE_LONG, MYSQL_TYPE_LONG_BLOB, MYSQL_TYPE_LONGLONG, MYSQL_TYPE_MEDIUM_BLOB, MYSQL_TYPE_NEWDATE, MYSQL_TYPE_NEWDECIMAL, MYSQL_TYPE_NULL, MYSQL_TYPE_SET, MYSQL_TYPE_SHORT, MYSQL_TYPE_STRING, MYSQL_TYPE_TIME, MYSQL_TYPE_TIMESTAMP, MYSQL_TYPE_TINY, MYSQL_TYPE_TINY_BLOB, MYSQL_TYPE_VAR_STRING, MYSQL_TYPE_VARCHAR, MYSQL_TYPE_YEAR, name, Field::NONE, NULL, TYPE_HOLDER, and unsigned_flag.
Referenced by create_tmp_field_for_schema(), create_tmp_field_from_item(), Item_type_holder::make_field_by_type(), Item_func_str_to_date::tmp_table_field(), Item_func_maketime::tmp_table_field(), Item_func_timediff::tmp_table_field(), Item_func_add_time::tmp_table_field(), Item_func_makedate::tmp_table_field(), Item_datetime_typecast::tmp_table_field(), Item_time_typecast::tmp_table_field(), Item_date_typecast::tmp_table_field(), Item_func_sec_to_time::tmp_table_field(), Item_func_curtime::tmp_table_field(), Item_date_func::tmp_table_field(), Item_date::tmp_table_field(), and Item_func_ifnull::tmp_table_field().
03985 { 03986 /* 03987 The field functions defines a field to be not null if null_ptr is not 0 03988 */ 03989 uchar *null_ptr= maybe_null ? (uchar*) "" : 0; 03990 Field *field; 03991 03992 switch (field_type()) { 03993 case MYSQL_TYPE_DECIMAL: 03994 case MYSQL_TYPE_NEWDECIMAL: 03995 field= new Field_new_decimal((char*) 0, max_length, null_ptr, 0, 03996 Field::NONE, name, decimals, 0, 03997 unsigned_flag); 03998 break; 03999 case MYSQL_TYPE_TINY: 04000 field= new Field_tiny((char*) 0, max_length, null_ptr, 0, Field::NONE, 04001 name, 0, unsigned_flag); 04002 break; 04003 case MYSQL_TYPE_SHORT: 04004 field= new Field_short((char*) 0, max_length, null_ptr, 0, Field::NONE, 04005 name, 0, unsigned_flag); 04006 break; 04007 case MYSQL_TYPE_LONG: 04008 field= new Field_long((char*) 0, max_length, null_ptr, 0, Field::NONE, 04009 name, 0, unsigned_flag); 04010 break; 04011 #ifdef HAVE_LONG_LONG 04012 case MYSQL_TYPE_LONGLONG: 04013 field= new Field_longlong((char*) 0, max_length, null_ptr, 0, Field::NONE, 04014 name, 0, unsigned_flag); 04015 break; 04016 #endif 04017 case MYSQL_TYPE_FLOAT: 04018 field= new Field_float((char*) 0, max_length, null_ptr, 0, Field::NONE, 04019 name, decimals, 0, unsigned_flag); 04020 break; 04021 case MYSQL_TYPE_DOUBLE: 04022 field= new Field_double((char*) 0, max_length, null_ptr, 0, Field::NONE, 04023 name, decimals, 0, unsigned_flag); 04024 break; 04025 case MYSQL_TYPE_NULL: 04026 field= new Field_null((char*) 0, max_length, Field::NONE, 04027 name, &my_charset_bin); 04028 break; 04029 case MYSQL_TYPE_INT24: 04030 field= new Field_medium((char*) 0, max_length, null_ptr, 0, Field::NONE, 04031 name, 0, unsigned_flag); 04032 break; 04033 case MYSQL_TYPE_NEWDATE: 04034 case MYSQL_TYPE_DATE: 04035 field= new Field_date(maybe_null, name, &my_charset_bin); 04036 break; 04037 case MYSQL_TYPE_TIME: 04038 field= new Field_time(maybe_null, name, &my_charset_bin); 04039 break; 04040 case MYSQL_TYPE_TIMESTAMP: 04041 field= new Field_timestamp(maybe_null, name, &my_charset_bin); 04042 break; 04043 case MYSQL_TYPE_DATETIME: 04044 field= new Field_datetime(maybe_null, name, &my_charset_bin); 04045 break; 04046 case MYSQL_TYPE_YEAR: 04047 field= new Field_year((char*) 0, max_length, null_ptr, 0, Field::NONE, 04048 name); 04049 break; 04050 case MYSQL_TYPE_BIT: 04051 field= new Field_bit_as_char(NULL, max_length, null_ptr, 0, 04052 Field::NONE, name); 04053 break; 04054 default: 04055 /* This case should never be chosen */ 04056 DBUG_ASSERT(0); 04057 /* If something goes awfully wrong, it's better to get a string than die */ 04058 case MYSQL_TYPE_STRING: 04059 if (fixed_length && max_length < CONVERT_IF_BIGGER_TO_BLOB) 04060 { 04061 field= new Field_string(max_length, maybe_null, name, 04062 collation.collation); 04063 break; 04064 } 04065 /* Fall through to make_string_field() */ 04066 case MYSQL_TYPE_ENUM: 04067 case MYSQL_TYPE_SET: 04068 case MYSQL_TYPE_VAR_STRING: 04069 case MYSQL_TYPE_VARCHAR: 04070 return make_string_field(table); 04071 case MYSQL_TYPE_TINY_BLOB: 04072 case MYSQL_TYPE_MEDIUM_BLOB: 04073 case MYSQL_TYPE_LONG_BLOB: 04074 case MYSQL_TYPE_BLOB: 04075 case MYSQL_TYPE_GEOMETRY: 04076 if (this->type() == Item::TYPE_HOLDER) 04077 field= new Field_blob(max_length, maybe_null, name, collation.collation, 04078 1); 04079 else 04080 field= new Field_blob(max_length, maybe_null, name, collation.collation); 04081 break; // Blob handled outside of case 04082 } 04083 if (field) 04084 field->init(table); 04085 return field; 04086 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual void Item::top_level_item | ( | ) | [inline, virtual] |
Reimplemented in Item_bool_func2, Item_func_not_all, Item_func_opt_neg, Item_func_isnotnull, Item_cond, Item_cond_xor, and Item_in_subselect.
Definition at line 751 of file item.h.
Referenced by add_join_on(), JOIN::exec(), Item_cond::fix_fields(), Item_func_if::fix_fields(), Item_in_subselect::row_value_transformer(), and simplify_joins().
Here is the caller graph for this function:

| virtual Item* Item::transform | ( | Item_transformer | transformer, | |
| byte * | arg | |||
| ) | [inline, virtual] |
Reimplemented in Item_default_value, Item_cond, Item_equal, Item_func, Item_row, and Item_func_make_set.
Definition at line 777 of file item.h.
Referenced by Item_func_make_set::transform(), Item_func::transform(), Item_equal::transform(), Item_cond::transform(), and Item_default_value::transform().
Here is the caller graph for this function:

| virtual void Item::traverse_cond | ( | Cond_traverser | traverser, | |
| void * | arg, | |||
| traverse_order | order | |||
| ) | [inline, virtual] |
Definition at line 782 of file item.h.
Referenced by Item_cond::traverse_cond().
Here is the caller graph for this function:

| virtual enum Type Item::type | ( | ) | const [pure virtual] |
Implemented in Item_splocal, Item_case_expr, Item_name_const, Item_ident_for_show, Item_field, Item_null, Item_param, Item_int, Item_decimal, Item_float, Item_string, Item_hex_string, Item_ref, Item_copy_string, Item_default_value, Item_trigger_field, Item_cache, Item_type_holder, Item_cond, Item_cond_xor, Item_func, Item_user_var_as_out_param, Item_row, Item_subselect, Item_sum, Item_avg_field, Item_variance_field, Item_std_field, Item_nodeset_func, Item_nodeset_to_const_comparator, and Item_proc.
Referenced by add_field_to_list(), add_key_fields(), change_group_ref(), change_to_use_tmp_fields(), check_duplicate_names(), check_equality(), check_group_min_max_predicates(), count_field_types(), create_comparator(), create_table_from_items(), create_tmp_field(), create_tmp_table(), Item_type_holder::display_length(), Item_char_typecast::eq(), Item_extract::eq(), Item_func_date_format::eq(), Item_func_set_collation::eq(), Item_func_match::eq(), Item_func_get_user_var::eq(), Item_func::eq(), Item_trigger_field::eq(), Item_insert_value::eq(), Item_default_value::eq(), Item_direct_view_ref::eq(), Item_hex_string::eq(), Item_float::eq(), Item_int::eq(), Item_param::eq(), Item_null::eq(), Item_decimal::eq(), Item_field::eq(), Item_string::eq(), eq(), find_field_in_group_list(), find_field_in_item_list(), find_field_in_table_ref(), find_order_in_list(), Item_sum_hybrid::fix_fields(), Item_func_match::fix_fields(), Item_func_set_user_var::fix_fields(), Item_cond::fix_fields(), Item_insert_value::fix_fields(), Item_default_value::fix_fields(), Item_field::fix_fields(), Item_func_date_format::fix_length_and_dec(), Item_bool_func2::fix_length_and_dec(), get_best_group_min_max(), Item_type_holder::get_full_info(), get_mm_tree(), Item_type_holder::get_real_type(), get_store_key(), create_field::init(), make_cond_for_table(), make_string_field(), JOIN::make_sum_func_list(), mark_common_columns(), mark_select_range_as_dependent(), my_xpath_parse_UnionExpr(), mysql_load(), nametestfunc(), negate_expression(), new_Cached_item(), nodeset2bool(), opt_sum_query(), proc_analyse_init(), read_sep_field(), remove_additional_cond(), resolve_const_item(), JOIN::rollup_init(), JOIN::rollup_make_fields(), JOIN::rollup_write_data(), send(), set_var::set_var(), setup_wild(), simple_pred(), split_sum_func2(), test_if_ref(), JOIN::test_in_subselect(), Item_case_expr::type(), Item_name_const::type(), update_ref_and_keys(), and uses_only_table_name_fields().
Here is the caller graph for this function:

| virtual void Item::update_used_tables | ( | ) | [inline, virtual] |
Reimplemented in Item_func_isnull, Item_is_not_null_test, Item_cond, Item_equal, Item_func, Item_func_rand, Item_func_sleep, Item_func_match, Item_row, Item_func_make_set, Item_subselect, Item_sum, and Item_func_sysdate_local.
Definition at line 721 of file item.h.
Referenced by add_found_match_trig_cond(), build_equal_items_for_cond(), JOIN::exec(), opt_sum_query(), JOIN::optimize(), Item_func_make_set::update_used_tables(), Item_func_isnull::update_used_tables(), Item_equal::update_used_tables(), Item_is_not_null_test::update_used_tables(), and Item_cond::update_used_tables().
Here is the caller graph for this function:

| virtual table_map Item::used_tables | ( | ) | const [inline, virtual] |
Reimplemented in Item_field, Item_param, Item_result_field, Item_ref, Item_ref_null_helper, Item_copy_string, Item_default_value, Item_insert_value, Item_trigger_field, Item_cache, Item_is_not_null_test, Item_cond, Item_func, Item_func_get_user_var, Item_row, Item_subselect, Item_sum, Item_sum_count, and Item_sum_hybrid.
Definition at line 670 of file item.h.
Referenced by add_ft_keys(), add_key_fields(), and_expressions(), check_insert_fields(), const_during_execution(), const_item(), Item_row::fix_fields(), Item_func_match::fix_fields(), Item_equal::fix_fields(), Item_cond::fix_fields(), Item_in_optimizer::fix_fields(), Item_in_optimizer::fix_left(), Item_func_make_set::fix_length_and_dec(), get_sort_by_table(), init_read_record(), mark_select_range_as_dependent(), mysql_ha_read(), not_null_tables(), opt_sum_query(), JOIN::optimize(), simplify_joins(), split_sum_func2(), Item_func_make_set::update_used_tables(), Item_row::update_used_tables(), Item_func::update_used_tables(), Item_equal::update_used_tables(), Item_cond::update_used_tables(), and Item_func_concat::val_str().
00670 { return (table_map) 0L; }
Here is the caller graph for this function:

| bool Item::val_bool | ( | ) | [virtual] |
Reimplemented in Item_ref, Item_direct_ref, Item_ref_null_helper, Item_singlerow_subselect, Item_exists_subselect, and Item_in_subselect.
Definition at line 176 of file item.cc.
References DBUG_ASSERT, DECIMAL_RESULT, INT_RESULT, my_decimal_is_zero(), REAL_RESULT, result_type(), ROW_RESULT, STRING_RESULT, val_decimal(), val_int(), and val_real().
Referenced by sp_instr_jump_if_not::exec_core(), Item_func_case::find_item(), Item_singlerow_subselect::val_bool(), val_bool_result(), Item_func_if::val_decimal(), Item_cond_or::val_int(), Item_cond_and::val_int(), Item_func_if::val_int(), Item_func_not_all::val_int(), Item_func_not::val_int(), Item_func_if::val_real(), and Item_func_if::val_str().
00177 { 00178 switch(result_type()) { 00179 case INT_RESULT: 00180 return val_int() != 0; 00181 case DECIMAL_RESULT: 00182 { 00183 my_decimal decimal_value; 00184 my_decimal *val= val_decimal(&decimal_value); 00185 if (val) 00186 return !my_decimal_is_zero(val); 00187 return 0; 00188 } 00189 case REAL_RESULT: 00190 case STRING_RESULT: 00191 return val_real() != 0.0; 00192 case ROW_RESULT: 00193 default: 00194 DBUG_ASSERT(0); 00195 return 0; // Wrong (but safe) 00196 } 00197 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual bool Item::val_bool_result | ( | ) | [inline, virtual] |
Reimplemented in Item_field, and Item_ref.
Definition at line 667 of file item.h.
References val_bool().
Referenced by Item_in_optimizer::val_int().
00667 { return val_bool(); }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual my_decimal* Item::val_decimal | ( | my_decimal * | decimal_buffer | ) | [pure virtual] |
Implemented in Item_sp_variable, Item_name_const, Item_ident_for_show, Item_field, Item_null, Item_param, Item_int, Item_decimal, Item_float, Item_string, Item_hex_string, Item_ref, Item_direct_ref, Item_ref_null_helper, Item_copy_string, Item_cache_int, Item_cache_real, Item_cache_decimal, Item_cache_str, Item_cache_row, Item_type_holder, Item_func_if, Item_func_nullif, Item_func_case, Item_func, Item_real_func, Item_func_numhybrid, Item_decimal_typecast, Item_func_min_max, Item_func_udf_decimal, Item_func_set_user_var, Item_func_get_user_var, Item_user_var_as_out_param, Item_func_sp, Item_row, Item_str_func, Item_singlerow_subselect, Item_exists_subselect, Item_in_subselect, Item_sum_num, Item_sum_int, Item_sum_sum, Item_sum_distinct, Item_avg_field, Item_sum_avg, Item_variance_field, Item_sum_variance, Item_std_field, Item_sum_hybrid, Item_sum_udf_decimal, Item_func_group_concat, Item_proc_real, Item_proc_int, and Item_proc_string.
Referenced by field_decimal::add(), Item_sum_max::add(), Item_sum_min::add(), Item_sum_variance::add(), Item_sum_sum::add(), Item_func_set_user_var::check(), cmp_item_decimal::cmp(), Cached_item_decimal::cmp(), Item_func_round::decimal_op(), Item_func_floor::decimal_op(), Item_func_ceiling::decimal_op(), Item_func_abs::decimal_op(), Item_func_neg::decimal_op(), Item_func_mod::decimal_op(), Item_func_div::decimal_op(), Item_func_mul::decimal_op(), Item_func_minus::decimal_op(), Item_func_plus::decimal_op(), Item_func_ifnull::decimal_op(), field_is_equal_to_item(), Item_func_case::find_item(), Item_func_interval::fix_length_and_dec(), in_decimal::get_value(), Item_sum_hybrid::min_max_update_decimal_field(), Item_sum_avg::reset_field(), Item_sum_sum::reset_field(), Item_sum_hybrid::reset_field(), Item_sum_variance::reset_field(), resolve_const_item(), save_in_field(), in_decimal::set(), cmp_item_decimal::store_value(), Item_sum_avg::update_field(), Item_sum_sum::update_field(), Item_sum_variance::update_field(), val_bool(), Item_singlerow_subselect::val_decimal(), Item_func_min_max::val_decimal(), Item_decimal_typecast::val_decimal(), Item_func_case::val_decimal(), Item_func_nullif::val_decimal(), Item_func_if::val_decimal(), Item_name_const::val_decimal(), Item_sp_variable::val_decimal(), val_decimal_result(), Item_func_between::val_int(), Item_func_interval::val_int(), val_int_from_decimal(), val_real_from_decimal(), Item_func_format::val_str(), and val_string_from_decimal().
Here is the caller graph for this function:

| my_decimal * Item::val_decimal_from_int | ( | my_decimal * | decimal_value | ) |
Definition at line 241 of file item.cc.
References E_DEC_FATAL_ERROR, int2my_decimal(), null_value, unsigned_flag, and val_int().
Referenced by Item_sum_int::val_decimal().
00242 { 00243 longlong nr= val_int(); 00244 if (null_value) 00245 return 0; 00246 int2my_decimal(E_DEC_FATAL_ERROR, nr, unsigned_flag, decimal_value); 00247 return decimal_value; 00248 }
Here is the call graph for this function:

Here is the caller graph for this function:

| my_decimal * Item::val_decimal_from_real | ( | my_decimal * | decimal_value | ) |
Definition at line 231 of file item.cc.
References double2my_decimal(), E_DEC_FATAL_ERROR, null_value, and val_real().
Referenced by Item_variance_field::val_decimal(), Item_std_field::val_decimal(), Item_avg_field::val_decimal(), Item_sum_variance::val_decimal(), Item_sum_sum::val_decimal(), and Item_sum_num::val_decimal().
00232 { 00233 double nr= val_real(); 00234 if (null_value) 00235 return 0; 00236 double2my_decimal(E_DEC_FATAL_ERROR, nr, decimal_value); 00237 return (decimal_value); 00238 }
Here is the call graph for this function:

Here is the caller graph for this function:

| my_decimal * Item::val_decimal_from_string | ( | my_decimal * | decimal_value | ) |
Definition at line 251 of file item.cc.
References String::c_ptr(), String::charset(), current_thd, E_DEC_BAD_NUM, E_DEC_FATAL_ERROR, ER, ER_TRUNCATED_WRONG_VALUE, String::length(), String::ptr(), push_warning_printf(), str2my_decimal(), str_value, val_str(), and MYSQL_ERROR::WARN_LEVEL_WARN.
Referenced by Item_func_group_concat::val_decimal(), and Item_string::val_decimal().
00252 { 00253 String *res; 00254 char *end_ptr; 00255 if (!(res= val_str(&str_value))) 00256 return 0; // NULL or EOM 00257 00258 end_ptr= (char*) res->ptr()+ res->length(); 00259 if (str2my_decimal(E_DEC_FATAL_ERROR & ~E_DEC_BAD_NUM, 00260 res->ptr(), res->length(), res->charset(), 00261 decimal_value) & E_DEC_BAD_NUM) 00262 { 00263 push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_WARN, 00264 ER_TRUNCATED_WRONG_VALUE, 00265 ER(ER_TRUNCATED_WRONG_VALUE), "DECIMAL", 00266 str_value.c_ptr()); 00267 } 00268 return decimal_value; 00269 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual my_decimal* Item::val_decimal_result | ( | my_decimal * | val | ) | [inline, virtual] |
Reimplemented in Item_field, and Item_ref.
Definition at line 665 of file item.h.
References val_decimal().
Referenced by make_sortkey(), and Item_cache_decimal::store().
00666 { return val_decimal(val); }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual longlong Item::val_int | ( | ) | [pure virtual] |
Implemented in Item_sp_variable, Item_name_const, Item_ident_for_show, Item_field, Item_null, Item_param, Item_int, Item_decimal, Item_float, Item_string, Item_hex_string, Item_ref, Item_direct_ref, Item_ref_null_helper, Item_copy_string, Item_cache_int, Item_cache_real, Item_cache_decimal, Item_cache_str, Item_cache_row, Item_type_holder, Item_in_optimizer, Item_func_not, Item_func_trig_cond, Item_func_not_all, Item_func_nop_all, Item_func_eq, Item_func_equal, Item_func_ge, Item_func_gt, Item_func_le, Item_func_lt, Item_func_ne, Item_func_between, Item_func_strcmp, Item_func_interval, Item_func_if, Item_func_nullif, Item_func_case, Item_func_in, Item_func_isnull, Item_is_not_null_test, Item_func_isnotnull, Item_func_like, Item_func_regex, Item_equal, Item_cond_and, Item_cond_or, Item_cond_xor, Item_real_func, Item_func_numhybrid, Item_func_connection_id, Item_func_signed, Item_func_unsigned, Item_decimal_typecast, Item_func_int_div, Item_func_sign, Item_func_min_max, Item_func_length, Item_func_bit_length, Item_func_char_length, Item_func_coercibility, Item_func_locate, Item_func_field, Item_func_ascii, Item_func_ord, Item_func_find_in_set, Item_func_bit_or, Item_func_bit_and, Item_func_bit_count, Item_func_shift_left, Item_func_shift_right, Item_func_bit_neg, Item_func_last_insert_id, Item_func_benchmark, Item_func_sleep, Item_func_udf_int, Item_func_udf_str, Item_func_get_lock, Item_func_release_lock, Item_master_pos_wait, Item_func_set_user_var, Item_func_get_user_var, Item_user_var_as_out_param, Item_func_get_system_var, Item_func_inet_aton, Item_func_match, Item_func_bit_xor, Item_func_is_free_lock, Item_func_is_used_lock, Item_func_row_count, Item_func_sp, Item_func_found_rows, Item_row, Item_str_func, Item_func_elt, Item_func_crc32, Item_func_uncompressed_length, Item_singlerow_subselect, Item_exists_subselect, Item_in_subselect, Item_sum_num, Item_sum_sum, Item_sum_distinct, Item_sum_count, Item_sum_count_distinct, Item_avg_field, Item_sum_avg, Item_variance_field, Item_sum_hybrid, Item_sum_bit, Item_sum_udf_int, Item_sum_udf_str, Item_func_group_concat, Item_func_period_add, Item_func_period_diff, Item_func_to_days, Item_func_dayofmonth, Item_func_month, Item_func_dayofyear, Item_func_hour, Item_func_minute, Item_func_quarter, Item_func_second, Item_func_week, Item_func_yearweek, Item_func_year, Item_func_weekday, Item_func_unix_timestamp, Item_func_time_to_sec, Item_date, Item_func_curtime, Item_func_curdate, Item_func_now, Item_func_sysdate_local, Item_func_from_unixtime, Item_func_convert_tz, Item_func_sec_to_time, Item_date_add_interval, Item_extract, Item_date_typecast, Item_time_typecast, Item_datetime_typecast, Item_func_makedate, Item_func_microsecond, Item_func_timestamp_diff, Item_xpath_cast_bool, Item_func_xpath_position, Item_func_xpath_count, Item_nodeset_to_const_comparator, Item_proc_real, Item_proc_int, and Item_proc_string.
Referenced by field_ulonglong::add(), field_longlong::add(), Item_sum_max::add(), Item_sum_min::add(), sys_var_character_set::check(), sys_var_collation::check(), sys_var_long_ptr_global::check(), sys_var::check(), Item_func_set_user_var::check(), check_completion_type(), sys_var::check_enum(), check_max_delayed_threads(), check_pseudo_thread_id(), sys_var::check_set(), cmp_item_int::cmp(), Cached_item_int::cmp(), do_select(), eliminate_item_equal(), end_send(), end_send_group(), end_write(), end_write_group(), Item_int::eq(), Item_param::eq(), evaluate_join_record(), evaluate_null_complemented_join_record(), JOIN::exec(), subselect_indexsubquery_engine::exec(), subselect_uniquesubquery_engine::exec(), Item_func_case::find_item(), find_order_in_list(), Item_func_rand::fix_fields(), get_all_items_for_category(), get_all_tables(), Item_func_from_days::get_date(), in_longlong::get_value(), Item_func_round::int_op(), Item_func_floor::int_op(), Item_func_ceiling::int_op(), Item_func_abs::int_op(), Item_func_neg::int_op(), Item_func_mod::int_op(), Item_func_mul::int_op(), Item_func_minus::int_op(), Item_func_plus::int_op(), Item_func_ifnull::int_op(), Item_subselect::is_null(), Item_func::is_null(), make_empty_rec(), Item_sum_hybrid::min_max_update_int_field(), mysql_delete(), mysql_execute_command(), Item_int_with_ref::new_item(), Item_cache_row::null_inside(), remove_dup_with_compare(), remove_dup_with_hash_index(), Item_sum_hybrid::reset_field(), resolve_const_item(), return_zero_rows(), JOIN::rollup_send_data(), JOIN::rollup_write_data(), save_in_field(), search_categories(), search_keyword(), search_topics(), send(), in_longlong::set(), SQL_SELECT::skip_record(), cmp_item_int::store_value(), sys_var_key_cache_long::update(), val_bool(), Item_func::val_decimal(), val_decimal_from_int(), Item_func_sec_to_time::val_int(), Item_singlerow_subselect::val_int(), Item_func_elt::val_int(), Item_func_last_insert_id::val_int(), Item_func_get_lock::val_int(), Item_func_min_max::val_int(), Item_func_int_div::val_int(), Item_func_unsigned::val_int(), Item_func_signed::val_int(), Item_func_trig_cond::val_int(), Item_cond_xor::val_int(), Item_func_case::val_int(), Item_func_nullif::val_int(), Item_func_if::val_int(), Item_func_between::val_int(), Item_func_nop_all::val_int(), Item_name_const::val_int(), Item_sp_variable::val_int(), val_int_result(), Item_nodeset_func_elementbyindex::val_nodeset(), Item_nodeset_func_predicate::val_nodeset(), Item_int_func::val_real(), Item_func_make_set::val_str(), Item_int_func::val_str(), val_string_from_int(), val_uint(), and st_table_list::view_check_option().
Here is the caller graph for this function:

| longlong Item::val_int_from_decimal | ( | ) |
Definition at line 284 of file item.cc.
References E_DEC_FATAL_ERROR, my_decimal2int(), null_value, unsigned_flag, val_decimal(), and value.
00285 { 00286 /* Note that fix_fields may not be called for Item_avg_field items */ 00287 longlong result; 00288 my_decimal value, *dec_val= val_decimal(&value); 00289 if (null_value) 00290 return 0; 00291 my_decimal2int(E_DEC_FATAL_ERROR, dec_val, unsigned_flag, &result); 00292 return result; 00293 }
Here is the call graph for this function:

| virtual longlong Item::val_int_result | ( | ) | [inline, virtual] |
Reimplemented in Item_field, and Item_ref.
Definition at line 663 of file item.h.
References val_int().
Referenced by make_sortkey(), and Item_cache_int::store().
00663 { return val_int(); }
Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in Item_nodeset_func_rootelement, Item_nodeset_func_union, Item_nodeset_func_selfbyname, Item_nodeset_func_childbyname, Item_nodeset_func_descendantbyname, Item_nodeset_func_ancestorbyname, Item_nodeset_func_parentbyname, Item_nodeset_func_attributebyname, Item_nodeset_func_predicate, Item_nodeset_func_elementbyindex, and Item_nodeset_context_cache.
Definition at line 640 of file item.h.
Referenced by Item_nodeset_func::prepare(), Item_nodeset_to_const_comparator::val_int(), Item_func_xpath_count::val_int(), Item_func_xpath_position::val_int(), Item_xpath_cast_bool::val_int(), Item_nodeset_func_union::val_nodeset(), Item_func_xpath_sum::val_real(), Item_func_xml_update::val_str(), and Item_nodeset_func::val_str().
Here is the caller graph for this function:

| virtual double Item::val_real | ( | ) | [pure virtual] |
Implemented in Item_sp_variable, Item_name_const, Item_ident_for_show, Item_field, Item_null, Item_param, Item_int, Item_uint, Item_decimal, Item_float, Item_string, Item_hex_string, Item_ref, Item_direct_ref, Item_ref_null_helper, Item_copy_string, Item_cache_int, Item_cache_real, Item_cache_decimal, Item_cache_str, Item_cache_row, Item_type_holder, Item_func_if, Item_func_nullif, Item_func_case, Item_func_numhybrid, Item_int_func, Item_func_signed, Item_decimal_typecast, Item_func_exp, Item_func_ln, Item_func_log, Item_func_log2, Item_func_log10, Item_func_sqrt, Item_func_pow, Item_func_acos, Item_func_asin, Item_func_atan, Item_func_cos, Item_func_sin, Item_func_tan, Item_func_rand, Item_func_units, Item_func_min_max, Item_func_udf_float, Item_func_udf_str, Item_func_set_user_var, Item_func_get_user_var, Item_user_var_as_out_param, Item_func_get_system_var, Item_func_match, Item_func_sp, Item_row, Item_str_func, Item_func_elt, Item_singlerow_subselect, Item_exists_subselect, Item_in_subselect, Item_sum_int, Item_sum_sum, Item_sum_distinct, Item_avg_field, Item_sum_avg, Item_variance_field, Item_sum_variance, Item_std_field, Item_sum_std, Item_sum_hybrid, Item_sum_udf_float, Item_sum_udf_int, Item_sum_udf_decimal, Item_sum_udf_str, Item_func_group_concat, Item_func_month, Item_func_weekday, Item_date, Item_func_curtime, Item_func_now, Item_func_sysdate_local, Item_func_from_unixtime, Item_func_convert_tz, Item_func_sec_to_time, Item_date_add_interval, Item_func_unique_users, Item_sum_unique_users, Item_xpath_cast_number, Item_func_xpath_sum, Item_proc_real, Item_proc_int, and Item_proc_string.
Referenced by field_real::add(), Item_sum_max::add(), Item_sum_min::add(), Item_sum_variance::add(), Item_sum_sum::add(), add_ft_keys(), Item_func_set_user_var::check(), cmp_item_real::cmp(), Cached_item_real::cmp(), Item_float::eq(), Item_param::eq(), field_is_equal_to_item(), Item_func_case::find_item(), Item_func_interval::fix_length_and_dec(), in_double::get_value(), Item_sum_hybrid::min_max_update_real_field(), Item_func_round::real_op(), Item_func_floor::real_op(), Item_func_ceiling::real_op(), Item_func_abs::real_op(), Item_func_neg::real_op(), Item_func_mod::real_op(), Item_func_div::real_op(), Item_func_mul::real_op(), Item_func_minus::real_op(), Item_func_plus::real_op(), Item_func_ifnull::real_op(), Item_sum_avg::reset_field(), Item_sum_sum::reset_field(), Item_sum_hybrid::reset_field(), Item_sum_num::reset_field(), Item_sum_variance::reset_field(), resolve_const_item(), save_in_field(), send(), in_double::set(), cmp_item_real::store_value(), Item_sum_avg::update_field(), Item_sum_sum::update_field(), Item_sum_variance::update_field(), val_bool(), Item_real_func::val_decimal(), val_decimal_from_real(), Item_xpath_cast_bool::val_int(), Item_sum_num::val_int(), Item_real_func::val_int(), Item_func_sleep::val_int(), Item_func_field::val_int(), Item_func_sign::val_int(), Item_func_between::val_int(), Item_func_interval::val_int(), Item_xpath_cast_number::val_real(), Item_singlerow_subselect::val_real(), Item_func_elt::val_real(), Item_func_signed::val_real(), Item_func_min_max::val_real(), Item_func_units::val_real(), Item_func_tan::val_real(), Item_func_sin::val_real(), Item_func_cos::val_real(), Item_func_atan::val_real(), Item_func_asin::val_real(), Item_func_acos::val_real(), Item_func_pow::val_real(), Item_func_sqrt::val_real(), Item_func_exp::val_real(), Item_func_log10::val_real(), Item_func_log2::val_real(), Item_func_log::val_real(), Item_func_ln::val_real(), Item_func_case::val_real(), Item_func_nullif::val_real(), Item_func_if::val_real(), Item_name_const::val_real(), Item_sp_variable::val_real(), val_result(), Item_func_hex::val_str(), Item_func_format::val_str(), Item_real_func::val_str(), and val_string_from_real().
Here is the caller graph for this function:

| double Item::val_real_from_decimal | ( | ) |
Definition at line 272 of file item.cc.
References E_DEC_FATAL_ERROR, my_decimal2double(), null_value, and val_decimal().
Referenced by Item_variance_field::val_real(), Item_avg_field::val_real(), and Item_sum_variance::val_real().
00273 { 00274 /* Note that fix_fields may not be called for Item_avg_field items */ 00275 double result; 00276 my_decimal value_buff, *dec_val= val_decimal(&value_buff); 00277 if (null_value) 00278 return 0.0; 00279 my_decimal2double(E_DEC_FATAL_ERROR, dec_val, &result); 00280 return result; 00281 }
Here is the call graph for this function:

Here is the caller graph for this function:

| virtual double Item::val_result | ( | ) | [inline, virtual] |
Reimplemented in Item_field, and Item_ref.
Definition at line 662 of file item.h.
References val_real().
Referenced by make_sortkey(), and Item_cache_real::store().
00662 { return val_real(); }
Here is the call graph for this function:

Here is the caller graph for this function:

Implemented in Item_sp_variable, Item_name_const, Item_ident_for_show, Item_field, Item_null, Item_param, Item_int, Item_uint, Item_decimal, Item_float, Item_string, Item_hex_string, Item_ref, Item_direct_ref, Item_ref_null_helper, Item_copy_string, Item_cache_int, Item_cache_real, Item_cache_decimal, Item_cache_str, Item_cache_row, Item_type_holder, Item_func_if, Item_func_nullif, Item_func_case, Item_real_func, Item_func_numhybrid, Item_int_func, Item_decimal_typecast, Item_func_min_max, Item_func_udf_str, Item_func_set_user_var, Item_func_get_user_var, Item_user_var_as_out_param, Item_func_get_system_var, Item_func_sp, Item_row, Item_func_md5, Item_func_sha, Item_func_aes_encrypt, Item_func_aes_decrypt, Item_func_concat, Item_func_concat_ws, Item_func_reverse, Item_func_replace, Item_func_insert, Item_str_conv, Item_func_left, Item_func_right, Item_func_substr, Item_func_substr_index, Item_func_trim, Item_func_ltrim, Item_func_rtrim, Item_func_password, Item_func_old_password, Item_func_des_encrypt, Item_func_des_decrypt, Item_func_encrypt, Item_func_encode, Item_func_decode, Item_func_database, Item_func_user, Item_func_soundex, Item_func_elt, Item_func_make_set, Item_func_format, Item_func_char, Item_func_repeat, Item_func_rpad, Item_func_lpad, Item_func_conv, Item_func_hex, Item_func_unhex, Item_func_binary, Item_load_file, Item_func_export_set, Item_func_inet_ntoa, Item_func_quote, Item_func_conv_charset, Item_func_set_collation, Item_func_charset, Item_func_collation, Item_func_compress, Item_func_uncompress, Item_func_uuid, Item_singlerow_subselect, Item_exists_subselect, Item_in_subselect, Item_sum_num, Item_sum_int, Item_sum_sum, Item_sum_distinct, Item_avg_field, Item_sum_avg, Item_variance_field, Item_sum_hybrid, Item_sum_udf_str, Item_func_group_concat, Item_func_month, Item_func_monthname, Item_func_weekday, Item_func_dayname, Item_date, Item_func_curtime, Item_func_curdate, Item_func_now, Item_func_sysdate_local, Item_func_date_format, Item_func_from_unixtime, Item_func_convert_tz, Item_func_sec_to_time, Item_date_add_interval, Item_typecast, Item_char_typecast, Item_date_typecast, Item_time_typecast, Item_datetime_typecast, Item_func_makedate, Item_func_add_time, Item_func_timediff, Item_func_maketime, Item_func_get_format, Item_func_str_to_date, Item_nodeset_func, Item_func_xml_extractvalue, Item_func_xml_update, Item_proc_real, Item_proc_int, and Item_proc_string.
Referenced by field_str::add(), Item_sum_max::add(), Item_sum_min::add(), sys_var_thd_storage_engine::check(), sys_var_thd_time_zone::check(), sys_var_character_set::check(), sys_var_collation::check(), sys_var_thd_date_time_format::check(), Item_func_set_user_var::check(), sys_var::check_enum(), sys_var::check_set(), cmp_item_sort_string::cmp(), Cached_item_str::cmp(), Item_copy_string::copy(), field_is_equal_to_item(), Item_func_like::fix_fields(), Item_name_const::fix_fields(), Item_xml_str_func::fix_length_and_dec(), Item_func_str_to_date::fix_length_and_dec(), Item_func_set_collation::fix_length_and_dec(), Item_func_str_to_date::get_date(), get_date(), get_time(), in_string::get_value(), create_field::init(), Item_func_conv_charset::Item_func_conv_charset(), Item_sum_hybrid::min_max_update_str_field(), mysql_prepare_table(), Item_sum_hybrid::reset_field(), resolve_const_item(), Item_func_sysconst::safe_charset_converter(), Item_num::safe_charset_converter(), save_in_field(), Item_func_like::select_optimize(), send(), in_string::set(), sp_get_item_value(), cmp_item_sort_string_in_static::store_value(), cmp_item_sort_string::store_value(), Item_func_ifnull::str_op(), str_result(), Item_str_func::val_decimal(), val_decimal_from_string(), Item_extract::val_int(), Item_func_crc32::val_int(), Item_func_uncompressed_length::val_int(), Item_str_func::val_int(), Item_func_is_used_lock::val_int(), Item_func_is_free_lock::val_int(), Item_func_release_lock::val_int(), Item_func_get_lock::val_int(), Item_master_pos_wait::val_int(), Item_func_find_in_set::val_int(), Item_func_ord::val_int(), Item_func_ascii::val_int(), Item_func_locate::val_int(), Item_func_char_length::val_int(), Item_func_length::val_int(), Item_func_like::val_int(), Item_func_between::val_int(), Item_func_strcmp::val_int(), Item_str_func::val_real(), Item_func_match::val_real(), Item_func_xml_extractvalue::val_str(), Item_typecast::val_str(), Item_func_get_format::val_str(), Item_singlerow_subselect::val_str(), Item_func_binary::val_str(), Item_func_quote::val_str(), Item_func_export_set::val_str(), Item_func_unhex::val_str(), Item_func_hex::val_str(), Item_func_set_collation::val_str(), Item_func_conv_charset::val_str(), Item_func_conv::val_str(), Item_func_lpad::val_str(), Item_func_rpad::val_str(), Item_func_repeat::val_str(), Item_func_elt::val_str(), Item_func_soundex::val_str(), Item_func_encrypt::val_str(), Item_func_old_password::val_str(), Item_func_password::val_str(), Item_func_trim::val_str(), Item_func_rtrim::val_str(), Item_func_ltrim::val_str(), Item_func_substr_index::val_str(), Item_func_substr::val_str(), Item_func_right::val_str(), Item_func_left::val_str(), Item_func_insert::val_str(), Item_func_replace::val_str(), Item_func_reverse::val_str(), Item_func_des_decrypt::val_str(), Item_func_des_encrypt::val_str(), Item_func_aes_decrypt::val_str(), Item_func_aes_encrypt::val_str(), Item_func_sha::val_str(), Item_func_md5::val_str(), Item_func_min_max::val_str(), Item_func_case::val_str(), Item_func_nullif::val_str(), Item_func_if::val_str(), Item_name_const::val_str(), and Item_sp_variable::val_str().
Here is the caller graph for this function:

Definition at line 220 of file item.cc.
References decimals, E_DEC_FATAL_ERROR, FALSE, my_decimal2string(), my_decimal_round(), null_value, and val_decimal().
Referenced by Item_variance_field::val_str(), Item_avg_field::val_str(), Item_sum_avg::val_str(), and Item_sum_sum::val_str().
00221 { 00222 my_decimal dec_buf, *dec= val_decimal(&dec_buf); 00223 if (null_value) 00224 return 0; 00225 my_decimal_round(E_DEC_FATAL_ERROR, dec, decimals, FALSE, &dec_buf); 00226 my_decimal2string(E_DEC_FATAL_ERROR, &dec_buf, 0, 0, 0, str); 00227 return str; 00228 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 210 of file item.cc.
References my_charset_bin, null_value, String::set_int(), unsigned_flag, and val_int().
Referenced by Item_sum_int::val_str().
00211 { 00212 longlong nr= val_int(); 00213 if (null_value) 00214 return 0; 00215 str->set_int(nr, unsigned_flag, &my_charset_bin); 00216 return str; 00217 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 200 of file item.cc.
References decimals, my_charset_bin, null_value, String::set_real(), and val_real().
Referenced by Item_variance_field::val_str(), Item_avg_field::val_str(), Item_sum_avg::val_str(), Item_sum_sum::val_str(), and Item_sum_num::val_str().
00201 { 00202 double nr= val_real(); 00203 if (null_value) 00204 return 0; /* purecov: inspected */ 00205 str->set_real(nr,decimals, &my_charset_bin); 00206 return str; 00207 }
Here is the call graph for this function:

Here is the caller graph for this function:

| ulonglong Item::val_uint | ( | ) | [inline] |
| virtual bool Item::walk | ( | Item_processor | processor, | |
| bool | walk_subquery, | |||
| byte * | arg | |||
| ) | [inline, virtual] |
Reimplemented in Item_ref, Item_default_value, Item_insert_value, Item_cond, Item_equal, Item_func, Item_row, Item_func_make_set, Item_subselect, and Item_sum.
Definition at line 772 of file item.h.
Referenced by add_group_and_distinct_keys(), find_all_keys(), find_field_in_table_ref(), get_best_group_min_max(), Item_singlerow_subselect::select_transformer(), Item_subselect::walk(), Item_func_make_set::walk(), Item_equal::walk(), Item_cond::walk(), Item_insert_value::walk(), and Item_default_value::walk().
Here is the caller graph for this function:

Definition at line 494 of file item.h.
Referenced by field_str::add(), Item_sum_max::add(), Item_sum_min::add(), change_cond_ref_to_const(), Cached_item_str::cmp(), Item_equal::compare_collation(), Item_func_isnotnull::compare_collation(), Item_func_isnull::compare_collation(), Item_param::convert_str_value(), Item_sum_hybrid::create_tmp_field(), Item_sum::create_tmp_field(), create_tmp_field_for_schema(), create_tmp_field_from_item(), Item_func_set_collation::eq(), Item_hex_string::eq(), Item_param::eq(), Item_string::eq(), Item_func_group_concat::field_type(), Item_func_group_concat::fix_fields(), Item_sum_hybrid::fix_fields(), Item_func_set_user_var::fix_fields(), Item_func_like::fix_fields(), Item_sp_variable::fix_fields(), Item_xml_str_func::fix_length_and_dec(), Item_nodeset_func::fix_length_and_dec(), Item_date_typecast::fix_length_and_dec(), Item_typecast_maybe_null::fix_length_and_dec(), Item_typecast::fix_length_and_dec(), Item_func_sec_to_time::fix_length_and_dec(), Item_date::fix_length_and_dec(), Item_func_dayname::fix_length_and_dec(), Item_func_weekday::fix_length_and_dec(), Item_func_monthname::fix_length_and_dec(), Item_func_month::fix_length_and_dec(), Item_char_typecast::fix_length_and_dec(), Item_date_add_interval::fix_length_and_dec(), Item_func_convert_tz::fix_length_and_dec(), Item_func_from_unixtime::fix_length_and_dec(), Item_func_date_format::fix_length_and_dec(), Item_func_sysdate_local::fix_length_and_dec(), Item_func_now::fix_length_and_dec(), Item_func_curtime::fix_length_and_dec(), Item_func_curdate::fix_length_and_dec(), subselect_union_engine::fix_length_and_dec(), subselect_single_select_engine::fix_length_and_dec(), Item_func_uuid::fix_length_and_dec(), Item_func_collation::fix_length_and_dec(), Item_func_charset::fix_length_and_dec(), Item_func_quote::fix_length_and_dec(), Item_load_file::fix_length_and_dec(), Item_func_binary::fix_length_and_dec(), Item_func_unhex::fix_length_and_dec(), Item_func_hex::fix_length_and_dec(), Item_func_conv::fix_length_and_dec(), Item_func_char::fix_length_and_dec(), Item_func_format::fix_length_and_dec(), Item_func_ucase::fix_length_and_dec(), Item_func_lcase::fix_length_and_dec(), Item_func_export_set::fix_length_and_dec(), Item_func_set_collation::fix_length_and_dec(), Item_func_conv_charset::fix_length_and_dec(), Item_func_lpad::fix_length_and_dec(), Item_func_rpad::fix_length_and_dec(), Item_func_repeat::fix_length_and_dec(), Item_func_make_set::fix_length_and_dec(), Item_func_elt::fix_length_and_dec(), Item_func_soundex::fix_length_and_dec(), Item_func_encode::fix_length_and_dec(), Item_func_trim::fix_length_and_dec(), Item_func_substr_index::fix_length_and_dec(), Item_func_substr::fix_length_and_dec(), Item_func_right::fix_length_and_dec(), Item_func_left::fix_length_and_dec(), Item_func_insert::fix_length_and_dec(), Item_func_replace::fix_length_and_dec(), Item_func_reverse::fix_length_and_dec(), Item_func_concat_ws::fix_length_and_dec(), Item_func_concat::fix_length_and_dec(), Item_func_sha::fix_length_and_dec(), Item_func_md5::fix_length_and_dec(), Item_func_sp::fix_length_and_dec(), Item_func_get_user_var::fix_length_and_dec(), Item_func_set_user_var::fix_length_and_dec(), Item_func_min_max::fix_length_and_dec(), Item_equal::fix_length_and_dec(), Item_func_coalesce::fix_length_and_dec(), Item_func_case::fix_length_and_dec(), Item_func_nullif::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Item_func_ifnull::fix_length_and_dec(), field_str::get_opt_type(), init_make_field(), sys_var::item(), Item_bin_string::Item_bin_string(), Item_field::Item_field(), Item_func_char::Item_func_char(), Item_func_conv_charset::Item_func_conv_charset(), Item_func_sysconst::Item_func_sysconst(), Item_hex_string::Item_hex_string(), Item_null::Item_null(), Item_string::Item_string(), Item_sum_hybrid::Item_sum_hybrid(), Item_type_holder::Item_type_holder(), Item_type_holder::join_types(), Item_str_func::left_right_max_length(), Item_type_holder::make_field_by_type(), make_sortkey(), make_string_field(), Item_sum_hybrid::min_max_update_str_field(), mysql_prepare_table(), Item_string::new_item(), Item_string::print(), Item_param::reset(), Item_func_sysconst::safe_charset_converter(), Item_null::safe_charset_converter(), Item_static_string_func::safe_charset_converter(), Item_string::safe_charset_converter(), Item_hex_string::save_in_field(), Item_string::save_in_field(), save_in_field(), Item_copy_string::save_in_field(), Protocol::send_fields(), in_string::set(), Item_field::set_field(), Item_ref::set_properties(), Item_string::set_str_with_copy(), Item_cache::setup(), Item_cache_str::store(), cmp_item_row::store_value(), Item_func_ifnull::str_op(), tmp_table_field_from_field_type(), Item_nodeset_to_const_comparator::val_int(), Item_func_coercibility::val_int(), Item_func_xpath_sum::val_real(), Item_func_xml_update::val_str(), Item_nodeset_func::val_str(), Item_typecast::val_str(), Item_func_quote::val_str(), Item_func_export_set::val_str(), Item_func_collation::val_str(), Item_func_charset::val_str(), Item_func_set_collation::val_str(), Item_func_lpad::val_str(), Item_func_rpad::val_str(), Item_func_char::val_str(), Item_func_elt::val_str(), Item_func_soundex::val_str(), Item_func_substr_index::val_str(), Item_str_conv::val_str(), Item_func_replace::val_str(), Item_func_concat_ws::val_str(), Item_func_concat::val_str(), Item_func_min_max::val_str(), and Item_func_if::val_str().
Definition at line 486 of file item.h.
Referenced by field_decimal::add(), field_real::avg(), collect_decimal(), collect_real(), Item_param::convert_str_value(), Item_func::count_decimal_length(), Item_func::count_real_length(), Item_sum_variance::create_tmp_field(), Item_sum_avg::create_tmp_field(), Item_sum::create_tmp_field(), create_tmp_field_from_item(), decimal_int_part(), Item_func_round::decimal_op(), Item_func_case::decimal_precision(), Item_func_if::decimal_precision(), Item_func_ifnull::decimal_precision(), decimal_precision(), field_real::decimals(), field_decimal::field_decimal(), Item_func_int_val::find_num_type(), Item_func_num1::find_num_type(), Item_num_op::find_num_type(), Item_sum_hybrid::fix_fields(), Item_sum_num::fix_fields(), Item_name_const::fix_fields(), Item_sp_variable::fix_fields(), Item_func_unique_users::fix_length_and_dec(), Item_func_get_format::fix_length_and_dec(), Item_func_timestamp_diff::fix_length_and_dec(), Item_func_microsecond::fix_length_and_dec(), Item_func_maketime::fix_length_and_dec(), Item_func_timediff::fix_length_and_dec(), Item_func_makedate::fix_length_and_dec(), Item_func_sec_to_time::fix_length_and_dec(), Item_date::fix_length_and_dec(), Item_func_time_to_sec::fix_length_and_dec(), Item_func_unix_timestamp::fix_length_and_dec(), Item_func_dayname::fix_length_and_dec(), Item_func_weekday::fix_length_and_dec(), Item_func_year::fix_length_and_dec(), Item_func_yearweek::fix_length_and_dec(), Item_func_week::fix_length_and_dec(), Item_func_second::fix_length_and_dec(), Item_func_quarter::fix_length_and_dec(), Item_func_minute::fix_length_and_dec(), Item_func_hour::fix_length_and_dec(), Item_func_dayofyear::fix_length_and_dec(), Item_func_monthname::fix_length_and_dec(), Item_func_month::fix_length_and_dec(), Item_func_dayofmonth::fix_length_and_dec(), Item_func_to_days::fix_length_and_dec(), Item_func_period_diff::fix_length_and_dec(), Item_func_str_to_date::fix_length_and_dec(), Item_func_add_time::fix_length_and_dec(), Item_func_convert_tz::fix_length_and_dec(), Item_func_from_unixtime::fix_length_and_dec(), Item_func_date_format::fix_length_and_dec(), Item_func_sysdate_local::fix_length_and_dec(), Item_func_now::fix_length_and_dec(), Item_func_curtime::fix_length_and_dec(), Item_func_curdate::fix_length_and_dec(), Item_sum_bit::fix_length_and_dec(), Item_sum_int::fix_length_and_dec(), Item_sum_variance::fix_length_and_dec(), Item_sum_avg::fix_length_and_dec(), Item_sum_avg_distinct::fix_length_and_dec(), Item_sum_sum::fix_length_and_dec(), Item_exists_subselect::fix_length_and_dec(), Item_func_inet_ntoa::fix_length_and_dec(), Item_func_unhex::fix_length_and_dec(), Item_func_hex::fix_length_and_dec(), Item_func_format::fix_length_and_dec(), Item_func_elt::fix_length_and_dec(), Item_func_found_rows::fix_length_and_dec(), Item_func_row_count::fix_length_and_dec(), Item_func_is_used_lock::fix_length_and_dec(), Item_func_is_free_lock::fix_length_and_dec(), Item_func_inet_aton::fix_length_and_dec(), Item_func_units::fix_length_and_dec(), Item_dec_func::fix_length_and_dec(), Item_real_func::fix_length_and_dec(), Item_func_set_user_var::fix_length_and_dec(), Item_func_find_in_set::fix_length_and_dec(), Item_func_min_max::fix_length_and_dec(), Item_func_round::fix_length_and_dec(), Item_func_integer::fix_length_and_dec(), Item_func_int_div::fix_length_and_dec(), Item_func_div::fix_length_and_dec(), Item_func_isnotnull::fix_length_and_dec(), Item_func_isnull::fix_length_and_dec(), Item_bool_func::fix_length_and_dec(), Item_func_coalesce::fix_length_and_dec(), Item_func_case::fix_length_and_dec(), Item_func_nullif::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Item_func_ifnull::fix_length_and_dec(), Hybrid_type_traits_integer::fix_length_and_dec(), Hybrid_type_traits_decimal::fix_length_and_dec(), Hybrid_type_traits::fix_length_and_dec(), Item_sum::fix_num_length_and_dec(), Item_func_int_val::fix_num_length_and_dec(), Item_func_neg::fix_num_length_and_dec(), Item_func_num1::fix_num_length_and_dec(), Item_func::fix_num_length_and_dec(), float_length(), field_real::get_max_arg(), field_real::get_min_arg(), init_make_field(), Item_func_round::int_op(), Item(), Item_avg_field::Item_avg_field(), Item_copy_string::Item_copy_string(), Item_decimal::Item_decimal(), Item_decimal_typecast::Item_decimal_typecast(), Item_float::Item_float(), Item_func_format::Item_func_format(), Item_proc_real::Item_proc_real(), Item_str_func::Item_str_func(), Item_string::Item_string(), Item_type_holder::Item_type_holder(), Item_variance_field::Item_variance_field(), Item_type_holder::join_types(), make_sortkey(), Item_float::new_item(), Item_decimal::new_item(), Item_param::new_item(), Item_func_format::print(), Item_float::print(), resolve_const_item(), Item_func_mod::result_precision(), Item_func_div::result_precision(), Item_func_mul::result_precision(), Item_func_additive_op::result_precision(), select_describe(), send(), Item_param::set_decimal(), Item_decimal::set_decimal_value(), Item_param::set_double(), Item_field::set_field(), Item_param::set_from_user_var(), Item_param::set_int(), Item_param::set_null(), Item_ref::set_properties(), set_row(), Item_param::set_time(), Item_sum_distinct::setup(), Item_cache::setup(), field_real::std(), field_decimal::std(), Item_func::tmp_table_field(), tmp_table_field_from_field_type(), Item_std_field::val_decimal(), Item_decimal_typecast::val_decimal(), Item_proc_real::val_str(), Item_sum_hybrid::val_str(), Item_sum_distinct::val_str(), Item_func_format::val_str(), Item_func_min_max::val_str(), Item_func_numhybrid::val_str(), Item_real_func::val_str(), Item_cache_decimal::val_str(), Item_cache_real::val_str(), Item_float::val_str(), val_string_from_decimal(), and val_string_from_real().
Definition at line 491 of file item.h.
Referenced by set_var::check(), check_key_in_view(), check_view_insertability(), cleanup(), cleanup_processor(), Table_triggers_list::create_trigger(), create_view_field(), Item_func_coalesce::decimal_op(), Item_func_ifnull::decimal_op(), find_order_in_list(), Item_sum_unique_users::fix_fields(), Item_func_group_concat::fix_fields(), Item_sum_hybrid::fix_fields(), Item_sum_num::fix_fields(), Item_in_subselect::fix_fields(), Item_subselect::fix_fields(), Item_func_make_set::fix_fields(), Item_row::fix_fields(), Item_func_sp::fix_fields(), Item_func_match::fix_fields(), Item_user_var_as_out_param::fix_fields(), Item_func_set_user_var::fix_fields(), Item_func::fix_fields(), Item_equal::fix_fields(), Item_func_like::fix_fields(), Item_cond::fix_fields(), Item_func_if::fix_fields(), Item_in_optimizer::fix_fields(), Item_trigger_field::fix_fields(), Item_insert_value::fix_fields(), Item_default_value::fix_fields(), Item_ref::fix_fields(), Item_field::fix_fields(), fix_fields(), Item_name_const::fix_fields(), Item_sp_variable::fix_fields(), Item_in_optimizer::fix_left(), Item_sum_distinct::fix_length_and_dec(), Item_field::fix_outer_field(), Item_func_user::init(), Item_func_mod::int_op(), Item_func_mul::int_op(), Item_func_coalesce::int_op(), Item_func_ifnull::int_op(), Item_ref::is_null(), Item_bin_string::Item_bin_string(), Item_cache::Item_cache(), Item_decimal::Item_decimal(), Item_float::Item_float(), Item_func_conv_charset::Item_func_conv_charset(), Item_hex_string::Item_hex_string(), Item_int::Item_int(), Item_null::Item_null(), Item_ref::Item_ref(), Item_string::Item_string(), Item_type_holder::Item_type_holder(), set_var::light_check(), mysql_execute_command(), mysql_ha_read(), mysql_schema_table(), st_table_list::prep_check_option(), st_table_list::prep_where(), JOIN::prepare(), quick_fix_field(), Item_func_mod::real_op(), Item_func_div::real_op(), Item_func_mul::real_op(), Item_func_coalesce::real_op(), Item_func_ifnull::real_op(), remove_fixed(), Item_in_subselect::row_value_transformer(), Item_in_subselect::select_in_like_transformer(), Item_field::set_field(), Item_ref::set_properties(), Item_trigger_field::set_value(), Item_sum_distinct::setup(), simplify_joins(), Item_func_coalesce::str_op(), Item_func_ifnull::str_op(), Item_in_subselect::val_bool(), Item_exists_subselect::val_bool(), Item_ref::val_bool(), Item_ref_null_helper::val_bool(), Item_sum_udf_decimal::val_decimal(), Item_sum_hybrid::val_decimal(), Item_sum_variance::val_decimal(), Item_sum_avg::val_decimal(), Item_in_subselect::val_decimal(), Item_exists_subselect::val_decimal(), Item_str_func::val_decimal(), Item_func_udf_decimal::val_decimal(), Item_func_get_user_var::val_decimal(), Item_func_set_user_var::val_decimal(), Item_func_min_max::val_decimal(), Item_func_numhybrid::val_decimal(), Item_real_func::val_decimal(), Item_func::val_decimal(), Item_func_case::val_decimal(), Item_func_nullif::val_decimal(), Item_func_if::val_decimal(), Item_cache_str::val_decimal(), Item_cache_decimal::val_decimal(), Item_cache_real::val_decimal(), Item_cache_int::val_decimal(), Item_hex_string::val_decimal(), Item_ref_null_helper::val_decimal(), Item_float::val_decimal(), Item_name_const::val_decimal(), Item_sp_variable::val_decimal(), Item_func_now::val_int(), Item_func_curdate::val_int(), Item_func_curtime::val_int(), Item_func_microsecond::val_int(), Item_func_makedate::val_int(), Item_date_typecast::val_int(), Item_datetime_typecast::val_int(), Item_extract::val_int(), Item_date_add_interval::val_int(), Item_func_from_unixtime::val_int(), Item_func_sec_to_time::val_int(), Item_func_sysdate_local::val_int(), Item_date::val_int(), Item_func_time_to_sec::val_int(), Item_func_unix_timestamp::val_int(), Item_func_year::val_int(), Item_func_weekday::val_int(), Item_func_yearweek::val_int(), Item_func_week::val_int(), Item_func_second::val_int(), Item_func_minute::val_int(), Item_func_hour::val_int(), Item_func_quarter::val_int(), Item_func_month::val_int(), Item_func_dayofmonth::val_int(), Item_func_dayofyear::val_int(), Item_func_to_days::val_int(), Item_func_period_diff::val_int(), Item_func_period_add::val_int(), Item_sum_udf_str::val_int(), Item_sum_udf_int::val_int(), Item_sum_num::val_int(), Item_sum_count_distinct::val_int(), Item_sum_bit::val_int(), Item_sum_hybrid::val_int(), Item_sum_count::val_int(), Item_sum_sum::val_int(), Item_in_subselect::val_int(), Item_exists_subselect::val_int(), Item_singlerow_subselect::val_int(), Item_func_crc32::val_int(), Item_func_uncompressed_length::val_int(), Item_func_elt::val_int(), Item_str_func::val_int(), Item_func_match::val_int(), Item_func_udf_str::val_int(), Item_func_udf_int::val_int(), Item_func_bit_length::val_int(), Item_func_connection_id::val_int(), Item_real_func::val_int(), Item_func_found_rows::val_int(), Item_func_row_count::val_int(), Item_func_is_used_lock::val_int(), Item_func_is_free_lock::val_int(), Item_func_bit_xor::val_int(), Item_func_inet_aton::val_int(), Item_func_get_user_var::val_int(), Item_func_set_user_var::val_int(), Item_func_sleep::val_int(), Item_func_benchmark::val_int(), Item_func_last_insert_id::val_int(), Item_func_release_lock::val_int(), Item_func_get_lock::val_int(), Item_master_pos_wait::val_int(), Item_func_bit_count::val_int(), Item_func_find_in_set::val_int(), Item_func_ord::val_int(), Item_func_ascii::val_int(), Item_func_field::val_int(), Item_func_locate::val_int(), Item_func_coercibility::val_int(), Item_func_char_length::val_int(), Item_func_length::val_int(), Item_func_min_max::val_int(), Item_func_sign::val_int(), Item_func_bit_neg::val_int(), Item_func_shift_right::val_int(), Item_func_shift_left::val_int(), Item_func_int_div::val_int(), Item_func_numhybrid::val_int(), Item_cond_xor::val_int(), Item_func_like::val_int(), Item_func_isnotnull::val_int(), Item_is_not_null_test::val_int(), Item_func_isnull::val_int(), Item_cond_or::val_int(), Item_cond_and::val_int(), Item_func_bit_and::val_int(), Item_func_bit_or::val_int(), Item_func_in::val_int(), Item_func_case::val_int(), Item_func_nullif::val_int(), Item_func_if::val_int(), Item_func_between::val_int(), Item_func_interval::val_int(), Item_func_strcmp::val_int(), Item_func_lt::val_int(), Item_func_le::val_int(), Item_func_gt::val_int(), Item_func_ge::val_int(), Item_func_ne::val_int(), Item_func_equal::val_int(), Item_func_eq::val_int(), Item_in_optimizer::val_int(), Item_func_nop_all::val_int(), Item_func_not_all::val_int(), Item_func_not::val_int(), Item_cache_int::val_int(), Item_float::val_int(), Item_int::val_int(), Item_cache_str::val_int(), Item_cache_decimal::val_int(), Item_cache_real::val_int(), Item_ref::val_int(), Item_hex_string::val_int(), Item_ref_null_helper::val_int(), Item_null::val_int(), Item_string::val_int(), Item_field::val_int(), Item_name_const::val_int(), Item_sp_variable::val_int(), Item_sum_unique_users::val_real(), Item_func_unique_users::val_real(), Item_date_add_interval::val_real(), Item_func_sec_to_time::val_real(), Item_func_from_unixtime::val_real(), Item_func_now::val_real(), Item_func_curtime::val_real(), Item_date::val_real(), Item_func_weekday::val_real(), Item_func_month::val_real(), Item_func_sysdate_local::val_real(), Item_sum_udf_str::val_real(), Item_sum_udf_decimal::val_real(), Item_sum_udf_int::val_real(), Item_sum_udf_float::val_real(), Item_sum_int::val_real(), Item_sum_hybrid::val_real(), Item_sum_variance::val_real(), Item_sum_std::val_real(), Item_sum_avg::val_real(), Item_sum_sum::val_real(), Item_in_subselect::val_real(), Item_exists_subselect::val_real(), Item_singlerow_subselect::val_real(), Item_func_elt::val_real(), Item_str_func::val_real(), Item_func_udf_str::val_real(), Item_func_udf_float::val_real(), Item_int_func::val_real(), Item_func_match::val_real(), Item_func_get_user_var::val_real(), Item_func_set_user_var::val_real(), Item_func_min_max::val_real(), Item_func_units::val_real(), Item_func_rand::val_real(), Item_func_tan::val_real(), Item_func_sin::val_real(), Item_func_cos::val_real(), Item_func_atan::val_real(), Item_func_asin::val_real(), Item_func_acos::val_real(), Item_func_pow::val_real(), Item_func_sqrt::val_real(), Item_func_exp::val_real(), Item_func_log10::val_real(), Item_func_log2::val_real(), Item_func_log::val_real(), Item_func_ln::val_real(), Item_func_numhybrid::val_real(), Item_func_case::val_real(), Item_func_nullif::val_real(), Item_func_if::val_real(), Item_cache_real::val_real(), Item_cache_int::val_real(), Item_hex_string::val_real(), Item_float::val_real(), Item_uint::val_real(), Item_int::val_real(), Item_cache_str::val_real(), Item_cache_decimal::val_real(), Item_ref::val_real(), Item_ref_null_helper::val_real(), Item_null::val_real(), Item_string::val_real(), Item_field::val_real(), Item_name_const::val_real(), Item_sp_variable::val_real(), Item_typecast::val_str(), Item_func_weekday::val_str(), Item_func_str_to_date::val_str(), Item_func_get_format::val_str(), Item_func_maketime::val_str(), Item_func_timediff::val_str(), Item_func_add_time::val_str(), Item_func_makedate::val_str(), Item_date_typecast::val_str(), Item_time_typecast::val_str(), Item_datetime_typecast::val_str(), Item_char_typecast::val_str(), Item_date_add_interval::val_str(), Item_func_from_unixtime::val_str(), Item_func_date_format::val_str(), Item_func_sec_to_time::val_str(), Item_func_sysdate_local::val_str(), Item_func_now::val_str(), Item_func_curtime::val_str(), Item_func_curdate::val_str(), Item_date::val_str(), Item_func_dayname::val_str(), Item_func_monthname::val_str(), Item_sum_udf_str::val_str(), Item_func_group_concat::val_str(), Item_sum_hybrid::val_str(), Item_in_subselect::val_str(), Item_exists_subselect::val_str(), Item_func_binary::val_str(), Item_func_user::val_str(), Item_func_uuid::val_str(), Item_func_quote::val_str(), Item_func_inet_ntoa::val_str(), Item_func_export_set::val_str(), Item_load_file::val_str(), Item_func_unhex::val_str(), Item_func_hex::val_str(), Item_func_collation::val_str(), Item_func_charset::val_str(), Item_func_set_collation::val_str(), Item_func_conv_charset::val_str(), Item_func_conv::val_str(), Item_func_lpad::val_str(), Item_func_rpad::val_str(), Item_func_repeat::val_str(), Item_func_char::val_str(), Item_func_make_set::val_str(), Item_func_elt::val_str(), Item_func_format::val_str(), Item_func_soundex::val_str(), Item_func_database::val_str(), Item_func_decode::val_str(), Item_func_encode::val_str(), Item_func_encrypt::val_str(), Item_func_old_password::val_str(), Item_func_password::val_str(), Item_func_trim::val_str(), Item_func_rtrim::val_str(), Item_func_ltrim::val_str(), Item_func_substr_index::val_str(), Item_func_substr::val_str(), Item_func_right::val_str(), Item_func_left::val_str(), Item_str_conv::val_str(), Item_func_insert::val_str(), Item_func_replace::val_str(), Item_func_reverse::val_str(), Item_func_concat_ws::val_str(), Item_func_des_decrypt::val_str(), Item_func_des_encrypt::val_str(), Item_func_concat::val_str(), Item_func_aes_decrypt::val_str(), Item_func_aes_encrypt::val_str(), Item_func_sha::val_str(), Item_func_md5::val_str(), Item_func_udf_str::val_str(), Item_func_get_user_var::val_str(), Item_func_set_user_var::val_str(), Item_func_min_max::val_str(), Item_func_numhybrid::val_str(), Item_int_func::val_str(), Item_real_func::val_str(), Item_func_case::val_str(), Item_func_nullif::val_str(), Item_func_if::val_str(), Item_cache_str::val_str(), Item_hex_string::val_str(), Item_string::val_str(), Item_cache_decimal::val_str(), Item_cache_real::val_str(), Item_cache_int::val_str(), Item_ref::val_str(), Item_ref_null_helper::val_str(), Item_null::val_str(), Item_float::val_str(), Item_uint::val_str(), Item_int::val_str(), Item_field::val_str(), Item_name_const::val_str(), and Item_sp_variable::val_str().
Definition at line 486 of file item.h.
Referenced by cleanup(), create_distinct_group(), create_tmp_table(), Item(), and setup_group().
Definition at line 484 of file item.h.
Referenced by field_decimal::add(), Item_func_group_concat::add(), collect_decimal(), Item_param::convert_str_value(), Item_func::count_decimal_length(), Item_func::count_only_length(), Item_func::count_real_length(), Item_sum_variance::create_tmp_field(), Item_sum_avg::create_tmp_field(), Item_sum::create_tmp_field(), create_tmp_field_for_schema(), create_tmp_field_from_item(), Item_uint::decimal_precision(), Item_int::decimal_precision(), decimal_precision(), dump_leaf_key(), field_decimal::field_decimal(), Item_func_group_concat::field_type(), Item_func_int_val::find_num_type(), Item_func_num1::find_num_type(), Item_num_op::find_num_type(), Item_func_group_concat::fix_fields(), Item_sum_hybrid::fix_fields(), Item_sum_num::fix_fields(), Item_name_const::fix_fields(), Item_sp_variable::fix_fields(), Item_xml_str_func::fix_length_and_dec(), Item_func_xpath_count::fix_length_and_dec(), Item_func_xpath_position::fix_length_and_dec(), Item_nodeset_context_cache::fix_length_and_dec(), Item_nodeset_func::fix_length_and_dec(), Item_func_unique_users::fix_length_and_dec(), Item_func_get_format::fix_length_and_dec(), Item_func_maketime::fix_length_and_dec(), Item_func_timediff::fix_length_and_dec(), Item_func_makedate::fix_length_and_dec(), Item_date_typecast::fix_length_and_dec(), Item_typecast_maybe_null::fix_length_and_dec(), Item_typecast::fix_length_and_dec(), Item_func_sec_to_time::fix_length_and_dec(), Item_date::fix_length_and_dec(), Item_func_time_to_sec::fix_length_and_dec(), Item_func_unix_timestamp::fix_length_and_dec(), Item_func_dayname::fix_length_and_dec(), Item_func_weekday::fix_length_and_dec(), Item_func_year::fix_length_and_dec(), Item_func_yearweek::fix_length_and_dec(), Item_func_week::fix_length_and_dec(), Item_func_second::fix_length_and_dec(), Item_func_quarter::fix_length_and_dec(), Item_func_minute::fix_length_and_dec(), Item_func_hour::fix_length_and_dec(), Item_func_dayofyear::fix_length_and_dec(), Item_func_monthname::fix_length_and_dec(), Item_func_month::fix_length_and_dec(), Item_func_dayofmonth::fix_length_and_dec(), Item_func_to_days::fix_length_and_dec(), Item_func_period_diff::fix_length_and_dec(), Item_func_period_add::fix_length_and_dec(), Item_func_str_to_date::fix_length_and_dec(), Item_func_add_time::fix_length_and_dec(), Item_char_typecast::fix_length_and_dec(), Item_extract::fix_length_and_dec(), Item_date_add_interval::fix_length_and_dec(), Item_func_convert_tz::fix_length_and_dec(), Item_func_from_unixtime::fix_length_and_dec(), Item_func_date_format::fix_length_and_dec(), Item_func_sysdate_local::fix_length_and_dec(), Item_func_now::fix_length_and_dec(), Item_func_curtime::fix_length_and_dec(), Item_func_curdate::fix_length_and_dec(), Item_sum_udf_str::fix_length_and_dec(), Item_sum_bit::fix_length_and_dec(), Item_sum_int::fix_length_and_dec(), Item_sum_variance::fix_length_and_dec(), Item_sum_avg::fix_length_and_dec(), Item_sum_sum::fix_length_and_dec(), Item_exists_subselect::fix_length_and_dec(), Item_func_uuid::fix_length_and_dec(), Item_func_uncompress::fix_length_and_dec(), Item_func_compress::fix_length_and_dec(), Item_func_uncompressed_length::fix_length_and_dec(), Item_func_crc32::fix_length_and_dec(), Item_func_collation::fix_length_and_dec(), Item_func_charset::fix_length_and_dec(), Item_func_quote::fix_length_and_dec(), Item_func_inet_ntoa::fix_length_and_dec(), Item_load_file::fix_length_and_dec(), Item_func_binary::fix_length_and_dec(), Item_func_unhex::fix_length_and_dec(), Item_func_hex::fix_length_and_dec(), Item_func_conv::fix_length_and_dec(), Item_func_char::fix_length_and_dec(), Item_func_format::fix_length_and_dec(), Item_func_user::fix_length_and_dec(), Item_func_database::fix_length_and_dec(), Item_func_encrypt::fix_length_and_dec(), Item_func_des_decrypt::fix_length_and_dec(), Item_func_des_encrypt::fix_length_and_dec(), Item_func_old_password::fix_length_and_dec(), Item_func_password::fix_length_and_dec(), Item_func_ucase::fix_length_and_dec(), Item_func_lcase::fix_length_and_dec(), Item_func_export_set::fix_length_and_dec(), Item_func_set_collation::fix_length_and_dec(), Item_func_conv_charset::fix_length_and_dec(), Item_func_lpad::fix_length_and_dec(), Item_func_rpad::fix_length_and_dec(), Item_func_repeat::fix_length_and_dec(), Item_func_make_set::fix_length_and_dec(), Item_func_elt::fix_length_and_dec(), Item_func_soundex::fix_length_and_dec(), Item_func_encode::fix_length_and_dec(), Item_func_trim::fix_length_and_dec(), Item_func_substr_index::fix_length_and_dec(), Item_func_substr::fix_length_and_dec(), Item_func_insert::fix_length_and_dec(), Item_func_replace::fix_length_and_dec(), Item_func_reverse::fix_length_and_dec(), Item_func_concat_ws::fix_length_and_dec(), Item_func_concat::fix_length_and_dec(), Item_func_aes_decrypt::fix_length_and_dec(), Item_func_aes_encrypt::fix_length_and_dec(), Item_func_sha::fix_length_and_dec(), Item_func_md5::fix_length_and_dec(), Item_func_is_used_lock::fix_length_and_dec(), Item_func_is_free_lock::fix_length_and_dec(), Item_func_inet_aton::fix_length_and_dec(), Item_master_pos_wait::fix_length_and_dec(), Item_func_release_lock::fix_length_and_dec(), Item_func_get_lock::fix_length_and_dec(), Item_func_udf_str::fix_length_and_dec(), Item_func_benchmark::fix_length_and_dec(), Item_func_last_insert_id::fix_length_and_dec(), Item_func_bit_count::fix_length_and_dec(), Item_func_ascii::fix_length_and_dec(), Item_func_coercibility::fix_length_and_dec(), Item_func_char_length::fix_length_and_dec(), Item_func_length::fix_length_and_dec(), Item_func_units::fix_length_and_dec(), Item_dec_func::fix_length_and_dec(), Item_func_unsigned::fix_length_and_dec(), Item_func_signed::fix_length_and_dec(), Item_real_func::fix_length_and_dec(), Item_func_sp::fix_length_and_dec(), Item_func_get_user_var::fix_length_and_dec(), Item_func_set_user_var::fix_length_and_dec(), Item_func_find_in_set::fix_length_and_dec(), Item_func_field::fix_length_and_dec(), Item_func_locate::fix_length_and_dec(), Item_func_min_max::fix_length_and_dec(), Item_func_round::fix_length_and_dec(), Item_func_integer::fix_length_and_dec(), Item_func_int_div::fix_length_and_dec(), Item_func_div::fix_length_and_dec(), Item_func_connection_id::fix_length_and_dec(), Item_func_isnotnull::fix_length_and_dec(), Item_func_isnull::fix_length_and_dec(), Item_bool_func::fix_length_and_dec(), Item_func_in::fix_length_and_dec(), Item_func_case::fix_length_and_dec(), Item_func_nullif::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Item_func_ifnull::fix_length_and_dec(), Item_func_between::fix_length_and_dec(), Item_func_interval::fix_length_and_dec(), Item_bool_func2::fix_length_and_dec(), Hybrid_type_traits_integer::fix_length_and_dec(), Hybrid_type_traits_decimal::fix_length_and_dec(), Hybrid_type_traits::fix_length_and_dec(), Item_sum::fix_num_length_and_dec(), Item_func_int_val::fix_num_length_and_dec(), Item_func_neg::fix_num_length_and_dec(), Item_func_num1::fix_num_length_and_dec(), Item_func::fix_num_length_and_dec(), init_make_field(), Item(), Item_avg_field::Item_avg_field(), Item_bin_string::Item_bin_string(), Item_copy_string::Item_copy_string(), Item_datetime::Item_datetime(), Item_decimal::Item_decimal(), Item_decimal_typecast::Item_decimal_typecast(), Item_empty_string::Item_empty_string(), Item_float::Item_float(), Item_hex_string::Item_hex_string(), Item_int::Item_int(), Item_int_func::Item_int_func(), Item_null::Item_null(), Item_proc_int::Item_proc_int(), Item_proc_real::Item_proc_real(), Item_proc_string::Item_proc_string(), Item_string::Item_string(), Item_type_holder::Item_type_holder(), Item_variance_field::Item_variance_field(), Item_type_holder::join_types(), Item_str_func::left_right_max_length(), Item_empty_string::make_field(), Item_type_holder::make_field_by_type(), make_sortkey(), make_string_field(), mysql_show_grants(), Item_float::new_item(), Item_decimal::new_item(), Item_uint::new_item(), Item_int::new_item(), Item_int_with_ref::new_item(), Item_param::new_item(), resolve_const_item(), Item_func_mod::result_precision(), Item_func_div::result_precision(), Item_func_mul::result_precision(), Item_func_additive_op::result_precision(), Item_param::safe_charset_converter(), Item_param::set_decimal(), Item_decimal::set_decimal_value(), Item_param::set_double(), Item_field::set_field(), Item_param::set_from_user_var(), Item_param::set_int(), Item_param::set_null(), Item_ref::set_properties(), set_row(), Item_param::set_str(), Item_string::set_str_with_copy(), Item_param::set_time(), Item_func_group_concat::setup(), Item_sum_distinct::setup(), Item_cache::setup(), Item_func_sp::sp_result_field(), Item_func_sp::tmp_table_field(), Item_func::tmp_table_field(), tmp_table_field_from_field_type(), Item_decimal_typecast::val_decimal(), Item_func_date_format::val_str(), Item_func_concat_ws::val_str(), and Item_func_concat::val_str().
Definition at line 487 of file item.h.
Referenced by Item_sum_count::add(), analyse::change_columns(), change_group_ref(), create_table_from_items(), create_tmp_field(), Item_sum_unique_users::create_tmp_field(), Item_sum_variance::create_tmp_field(), Item_sum_avg::create_tmp_field(), Item_sum_hybrid::create_tmp_field(), Item_sum::create_tmp_field(), create_tmp_field_for_schema(), create_tmp_field_from_field(), create_tmp_field_from_item(), end_update(), end_write(), Item_func_group_concat::fix_fields(), Item_sum_hybrid::fix_fields(), Item_sum_num::fix_fields(), Item_row::fix_fields(), Item_func_match::fix_fields(), Item_func::fix_fields(), Item_equal::fix_fields(), Item_cond::fix_fields(), Item_in_optimizer::fix_fields(), Item_func_get_format::fix_length_and_dec(), Item_func_timestamp_diff::fix_length_and_dec(), Item_func_microsecond::fix_length_and_dec(), Item_func_timediff::fix_length_and_dec(), Item_date_typecast::fix_length_and_dec(), Item_typecast_maybe_null::fix_length_and_dec(), Item_func_sec_to_time::fix_length_and_dec(), Item_func_dayname::fix_length_and_dec(), Item_func_weekday::fix_length_and_dec(), Item_func_year::fix_length_and_dec(), Item_func_yearweek::fix_length_and_dec(), Item_func_week::fix_length_and_dec(), Item_func_second::fix_length_and_dec(), Item_func_quarter::fix_length_and_dec(), Item_func_minute::fix_length_and_dec(), Item_func_hour::fix_length_and_dec(), Item_func_dayofyear::fix_length_and_dec(), Item_func_monthname::fix_length_and_dec(), Item_func_month::fix_length_and_dec(), Item_func_dayofmonth::fix_length_and_dec(), Item_func_to_days::fix_length_and_dec(), Item_func_str_to_date::fix_length_and_dec(), Item_func_add_time::fix_length_and_dec(), Item_extract::fix_length_and_dec(), Item_date_add_interval::fix_length_and_dec(), Item_func_convert_tz::fix_length_and_dec(), Item_func_from_unixtime::fix_length_and_dec(), Item_func_date_format::fix_length_and_dec(), Item_sum_udf_str::fix_length_and_dec(), Item_sum_bit::fix_length_and_dec(), Item_sum_int::fix_length_and_dec(), Item_sum::fix_length_and_dec(), Item_sum_variance::fix_length_and_dec(), Item_sum_avg::fix_length_and_dec(), Item_sum_sum::fix_length_and_dec(), Item_singlerow_subselect::fix_length_and_dec(), Item_func_uncompress::fix_length_and_dec(), Item_func_collation::fix_length_and_dec(), Item_func_charset::fix_length_and_dec(), Item_load_file::fix_length_and_dec(), Item_func_char::fix_length_and_dec(), Item_func_database::fix_length_and_dec(), Item_func_encrypt::fix_length_and_dec(), Item_func_des_decrypt::fix_length_and_dec(), Item_func_des_encrypt::fix_length_and_dec(), Item_func_lpad::fix_length_and_dec(), Item_func_rpad::fix_length_and_dec(), Item_func_repeat::fix_length_and_dec(), Item_func_elt::fix_length_and_dec(), Item_func_encode::fix_length_and_dec(), Item_func_insert::fix_length_and_dec(), Item_func_replace::fix_length_and_dec(), Item_func_concat_ws::fix_length_and_dec(), Item_func_concat::fix_length_and_dec(), Item_func_aes_decrypt::fix_length_and_dec(), Item_func_found_rows::fix_length_and_dec(), Item_func_row_count::fix_length_and_dec(), Item_func_is_used_lock::fix_length_and_dec(), Item_func_is_free_lock::fix_length_and_dec(), Item_func_inet_aton::fix_length_and_dec(), Item_master_pos_wait::fix_length_and_dec(), Item_func_release_lock::fix_length_and_dec(), Item_func_get_lock::fix_length_and_dec(), Item_func_udf_str::fix_length_and_dec(), Item_func_benchmark::fix_length_and_dec(), Item_func_coercibility::fix_length_and_dec(), Item_dec_func::fix_length_and_dec(), Item_func_sp::fix_length_and_dec(), Item_func_get_user_var::fix_length_and_dec(), Item_func_set_user_var::fix_length_and_dec(), Item_func_field::fix_length_and_dec(), Item_func_locate::fix_length_and_dec(), Item_func_min_max::fix_length_and_dec(), Item_func_int_div::fix_length_and_dec(), Item_func_div::fix_length_and_dec(), Item_func_isnotnull::fix_length_and_dec(), Item_func_isnull::fix_length_and_dec(), Item_func_in::fix_length_and_dec(), Item_func_case::fix_length_and_dec(), Item_func_nullif::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Item_func_ifnull::fix_length_and_dec(), Item_func_interval::fix_length_and_dec(), Item_func_equal::fix_length_and_dec(), init_make_field(), Item(), Item_avg_field::Item_avg_field(), Item_copy_string::Item_copy_string(), Item_exists_subselect::Item_exists_subselect(), Item_func_sp::Item_func_sp(), Item_in_subselect::Item_in_subselect(), Item_maxmin_subselect::Item_maxmin_subselect(), Item_name_const::Item_name_const(), Item_null::Item_null(), Item_singlerow_subselect::Item_singlerow_subselect(), Item_splocal::Item_splocal(), Item_type_holder::Item_type_holder(), Item_variance_field::Item_variance_field(), Item_type_holder::join_types(), Item_sum::make_field(), Item_type_holder::make_field_by_type(), make_sortkey(), make_string_field(), mysql_admin_table(), mysql_checksum_table(), mysqld_list_processes(), remove_eq_conds(), Item_param::reset(), Item_sum_count::reset_field(), Item_sum_hybrid::reset_field(), Item_sum_num::reset_field(), JOIN::rollup_init(), JOIN::rollup_make_fields(), Item_param::set_decimal(), Item_param::set_double(), Item_field::set_field(), Item_param::set_int(), Item_param::set_longdata(), Item_ref::set_properties(), set_row(), Item_param::set_str(), Item_param::set_time(), Item_sum_distinct::setup(), sp_head::show_create_function(), sp_head::show_create_procedure(), Item_in_subselect::single_value_transformer(), Item_func_sp::sp_result_field(), Item_func::tmp_table_field(), tmp_table_field_from_field_type(), Item_sum_count::update_field(), Item_func_isnull::update_used_tables(), and Item_is_not_null_test::update_used_tables().
Reimplemented in Item_func_units, Item_func_set_user_var, Item_func_get_user_var, and Item_user_var_as_out_param.
Definition at line 480 of file item.h.
Referenced by change_group_ref(), change_to_use_tmp_fields(), check_duplicate_names(), check_fields(), cleanup(), create_tmp_field(), Item_sum_unique_users::create_tmp_field(), Item_sum_variance::create_tmp_field(), Item_sum_avg::create_tmp_field(), Item_sum_hybrid::create_tmp_field(), Item_sum::create_tmp_field(), create_tmp_field_for_schema(), create_tmp_field_from_item(), Item_field::eq(), eq(), fill_record(), find_field_in_tables(), Item_subselect::fix_fields(), Item_func_get_system_var::fix_fields(), Item_default_value::fix_fields(), Item_ref::fix_fields(), full_name(), Item_ident::full_name(), init_make_field(), Item_avg_field::Item_avg_field(), Item_bin_string::Item_bin_string(), Item_copy_string::Item_copy_string(), Item_decimal::Item_decimal(), Item_empty_string::Item_empty_string(), Item_field::Item_field(), Item_float::Item_float(), Item_hex_string::Item_hex_string(), Item_ident::Item_ident(), Item_int::Item_int(), Item_null::Item_null(), Item_proc::Item_proc(), Item_variance_field::Item_variance_field(), Item_type_holder::join_types(), Load_log_event::Load_log_event(), Item_sum::make_field(), Item_sp_variable::make_field(), Item_ref::make_field(), Item_field::make_field(), Item_type_holder::make_field_by_type(), make_string_field(), make_unique_view_field_name(), mysql_schema_table(), mysql_show_grants(), Item_string::new_item(), Item_float::new_item(), Item_decimal::new_item(), Item_uint::new_item(), Item_int::new_item(), Item_null::new_item(), Item_int_with_ref::new_item(), Item_param::new_item(), Item_ref::print(), Item_ident::print(), print_item_w_name(), remove_additional_cond(), rename(), Item_field::reset_field(), resolve_const_item(), resolve_ref_in_select_and_group(), set_name(), st_table_list::setup_underlying(), Item_in_subselect::single_value_transformer(), Item_func_sp::sp_result_field(), split_sum_func2(), Item_func_sp::tmp_table_field(), Item_func::tmp_table_field(), tmp_table_field_from_field_type(), Item_decimal_typecast::val_decimal(), Item_func_dayname::val_str(), and ~Item().
Reimplemented in Item_sum.
Definition at line 483 of file item.h.
Referenced by cleanup_items(), create_tmp_table(), free_items(), Item(), and make_unireg_sortorder().
Definition at line 488 of file item.h.
Referenced by field_ulonglong::add(), field_longlong::add(), field_decimal::add(), field_real::add(), Item_func_group_concat::add(), Item_sum_and::add(), Item_sum_xor::add(), Item_sum_or::add(), Item_sum_max::add(), Item_sum_min::add(), Item_sum_variance::add(), Item_sum_avg::add(), Item_sum_count::add(), Item_sum_distinct::add(), Item_sum_sum::add(), Item_str_func::check_well_formed_result(), Item_func_group_concat::clear(), Item_sum_hybrid::clear(), Item_sum_distinct::clear(), Item_sum_sum::clear(), cmp_item_decimal::cmp(), cmp_item_row::cmp(), Cached_item_decimal::cmp(), Cached_item_int::cmp(), Cached_item_real::cmp(), Cached_item_str::cmp(), Arg_comparator::compare_binary_string(), Arg_comparator::compare_decimal(), Arg_comparator::compare_int_signed(), Arg_comparator::compare_int_signed_unsigned(), Arg_comparator::compare_int_unsigned(), Arg_comparator::compare_int_unsigned_signed(), Arg_comparator::compare_real(), Arg_comparator::compare_row(), Arg_comparator::compare_string(), Item_copy_string::copy(), Item_func_round::decimal_op(), Item_func_floor::decimal_op(), Item_func_ceiling::decimal_op(), Item_func_abs::decimal_op(), Item_func_neg::decimal_op(), Item_func_mod::decimal_op(), Item_func_div::decimal_op(), Item_func_mul::decimal_op(), Item_func_minus::decimal_op(), Item_func_plus::decimal_op(), Item_func_coalesce::decimal_op(), Item_func_ifnull::decimal_op(), analyse::end_of_records(), field_is_equal_to_item(), Item_func_case::find_item(), Item_func_group_concat::fix_fields(), Item_sum_hybrid::fix_fields(), Item_sum_num::fix_fields(), Item_row::fix_fields(), Item_func_str_to_date::fix_length_and_dec(), Item_sum_bit::fix_length_and_dec(), Item_sum_int::fix_length_and_dec(), Item_sum::fix_length_and_dec(), Item_sum_variance::fix_length_and_dec(), Item_sum_avg::fix_length_and_dec(), Item_sum_sum::fix_length_and_dec(), Item_func_in::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Item_func_equal::fix_length_and_dec(), Item_dec_func::fix_result(), Item_func::get_arg0_date(), Item_func::get_arg0_time(), Item_func_str_to_date::get_date(), Item_date_add_interval::get_date(), Item_func_from_days::get_date(), Item_direct_ref::get_date(), Item_ref::get_date(), Item_ref_null_helper::get_date(), Item_field::get_date(), Item_field::get_date_result(), Item_field::get_time(), in_decimal::get_value(), in_double::get_value(), in_longlong::get_value(), Item_func_user::init(), Item_func_round::int_op(), Item_func_floor::int_op(), Item_func_ceiling::int_op(), Item_func_abs::int_op(), Item_func_neg::int_op(), Item_func_mod::int_op(), Item_func_mul::int_op(), Item_func_minus::int_op(), Item_func_plus::int_op(), Item_func_coalesce::int_op(), Item_func_ifnull::int_op(), Item_variance_field::is_null(), Item_avg_field::is_null(), Item_sum::is_null(), Item_subselect::is_null(), Item_row::is_null(), Item_func_numhybrid::is_null(), Item_func::is_null(), Item_func_nullif::is_null(), Item_in_optimizer::is_null(), Item_copy_string::is_null(), Item(), Item_cache::Item_cache(), Item_copy_string::Item_copy_string(), Item_exists_subselect::Item_exists_subselect(), Item_func_conv_charset::Item_func_conv_charset(), Item_null::Item_null(), Item_subselect::Item_subselect(), make_sortkey(), Item_sum_hybrid::min_max_update_decimal_field(), Item_sum_hybrid::min_max_update_int_field(), Item_sum_hybrid::min_max_update_real_field(), Item_sum_hybrid::min_max_update_str_field(), Item_singlerow_subselect::null_inside(), Item_cache_row::null_inside(), Item_func_round::real_op(), Item_func_floor::real_op(), Item_func_ceiling::real_op(), Item_func_abs::real_op(), Item_func_neg::real_op(), Item_func_mod::real_op(), Item_func_div::real_op(), Item_func_mul::real_op(), Item_func_minus::real_op(), Item_func_plus::real_op(), Item_func_coalesce::real_op(), Item_func_ifnull::real_op(), Item_in_subselect::reset(), Item_subselect::reset(), Item_singlerow_subselect::reset(), Item_param::reset(), Item_sum_avg::reset_field(), Item_sum_count::reset_field(), Item_sum_sum::reset_field(), Item_sum_hybrid::reset_field(), Item_sum_num::reset_field(), Item_sum_variance::reset_field(), resolve_const_item(), Item_ref::save_in_field(), Item_float::save_in_field(), Item_int::save_in_field(), Item_string::save_in_field(), save_in_field(), Item_field::save_in_field(), Item_copy_string::save_in_field(), Item_field::save_org_in_field(), send(), Item_param::set_null(), Item_sum_distinct::setup(), Item_func::signal_divide_by_null(), Item_cache_row::store(), Item_cache_str::store(), Item_cache_decimal::store(), Item_cache_real::store(), Item_cache_int::store(), cmp_item_row::store_value(), cmp_item_row::store_value_by_template(), Item_func_coalesce::str_op(), Item_func_ifnull::str_op(), Item_ref::str_result(), Item_field::str_result(), Item_sum_avg::update_field(), Item_sum_count::update_field(), Item_sum_sum::update_field(), Item_sum_variance::update_field(), Item_in_subselect::val_bool(), Item_singlerow_subselect::val_bool(), Item_direct_ref::val_bool(), Item_ref::val_bool(), Item_ref_null_helper::val_bool(), Item_ref::val_bool_result(), Item_field::val_bool_result(), Item_proc_real::val_decimal(), Item_proc_int::val_decimal(), Item_proc_string::val_decimal(), Item_variance_field::val_decimal(), Item_avg_field::val_decimal(), Item_sum_hybrid::val_decimal(), Item_sum_variance::val_decimal(), Item_sum_avg::val_decimal(), Item_sum_distinct::val_decimal(), Item_in_subselect::val_decimal(), Item_singlerow_subselect::val_decimal(), Item_func_min_max::val_decimal(), Item_decimal_typecast::val_decimal(), Item_real_func::val_decimal(), Item_func_case::val_decimal(), Item_func_nullif::val_decimal(), Item_func_if::val_decimal(), Item_direct_ref::val_decimal(), Item_ref::val_decimal(), Item_ref_null_helper::val_decimal(), Item_copy_string::val_decimal(), Item_field::val_decimal(), Item_name_const::val_decimal(), Item_sp_variable::val_decimal(), val_decimal_from_int(), val_decimal_from_real(), Item_ref::val_decimal_result(), Item_field::val_decimal_result(), Item_func_timestamp_diff::val_int(), Item_func_makedate::val_int(), Item_time_typecast::val_int(), Item_datetime_typecast::val_int(), Item_extract::val_int(), Item_func_sec_to_time::val_int(), Item_func_unix_timestamp::val_int(), Item_func_period_diff::val_int(), Item_func_period_add::val_int(), Item_sum_udf_str::val_int(), Item_sum_hybrid::val_int(), Item_in_subselect::val_int(), Item_singlerow_subselect::val_int(), Item_func_crc32::val_int(), Item_func_uncompressed_length::val_int(), Item_func_elt::val_int(), Item_func_udf_str::val_int(), Item_func_last_insert_id::val_int(), Item_func_bit_count::val_int(), Item_func_find_in_set::val_int(), Item_func_ord::val_int(), Item_func_ascii::val_int(), Item_func_field::val_int(), Item_func_locate::val_int(), Item_func_coercibility::val_int(), Item_func_char_length::val_int(), Item_func_length::val_int(), Item_func_min_max::val_int(), Item_func_sign::val_int(), Item_func_bit_neg::val_int(), Item_func_shift_right::val_int(), Item_func_shift_left::val_int(), Item_func_int_div::val_int(), Item_decimal_typecast::val_int(), Item_func_unsigned::val_int(), Item_func_signed::val_int(), Item_equal::val_int(), Item_cond_xor::val_int(), Item_func_like::val_int(), Item_cond_or::val_int(), Item_cond_and::val_int(), Item_func_bit_and::val_int(), Item_func_bit_or::val_int(), Item_func_in::val_int(), Item_func_case::val_int(), Item_func_nullif::val_int(), Item_func_if::val_int(), Item_func_between::val_int(), Item_func_interval::val_int(), Item_func_strcmp::val_int(), Item_func_lt::val_int(), Item_func_le::val_int(), Item_func_ne::val_int(), Item_in_optimizer::val_int(), Item_func_nop_all::val_int(), Item_func_not_all::val_int(), Item_func_not::val_int(), Item_copy_string::val_int(), Item_direct_ref::val_int(), Item_ref::val_int(), Item_ref_null_helper::val_int(), Item_null::val_int(), Item_field::val_int(), Item_name_const::val_int(), Item_sp_variable::val_int(), val_int_from_decimal(), Item_func_signed::val_int_from_str(), Item_ref::val_int_result(), Item_field::val_int_result(), Item_sum_udf_str::val_real(), Item_variance_field::val_real(), Item_avg_field::val_real(), Item_sum_hybrid::val_real(), Item_sum_variance::val_real(), Item_sum_avg::val_real(), Item_in_subselect::val_real(), Item_singlerow_subselect::val_real(), Item_func_elt::val_real(), Item_func_udf_str::val_real(), Item_func_signed::val_real(), Item_func_min_max::val_real(), Item_func_units::val_real(), Item_func_tan::val_real(), Item_func_sin::val_real(), Item_func_cos::val_real(), Item_func_atan::val_real(), Item_func_asin::val_real(), Item_func_acos::val_real(), Item_func_pow::val_real(), Item_func_sqrt::val_real(), Item_func_exp::val_real(), Item_func_log10::val_real(), Item_func_log2::val_real(), Item_func_log::val_real(), Item_func_ln::val_real(), Item_decimal_typecast::val_real(), Item_func_case::val_real(), Item_func_nullif::val_real(), Item_func_if::val_real(), Item_copy_string::val_real(), Item_direct_ref::val_real(), Item_ref::val_real(), Item_ref_null_helper::val_real(), Item_null::val_real(), Item_field::val_real(), Item_name_const::val_real(), Item_sp_variable::val_real(), val_real_from_decimal(), Item_ref::val_result(), Item_field::val_result(), Item_proc_string::val_str(), Item_func_xml_update::val_str(), Item_func_xml_extractvalue::val_str(), Item_typecast::val_str(), Item_func_weekday::val_str(), Item_func_month::val_str(), Item_func_get_format::val_str(), Item_func_maketime::val_str(), Item_func_timediff::val_str(), Item_func_add_time::val_str(), Item_func_makedate::val_str(), Item_date_typecast::val_str(), Item_time_typecast::val_str(), Item_datetime_typecast::val_str(), Item_char_typecast::val_str(), Item_date_add_interval::val_str(), Item_func_convert_tz::val_str(), Item_func_from_unixtime::val_str(), Item_func_date_format::val_str(), Item_func_sec_to_time::val_str(), Item_func_curdate::val_str(), Item_date::val_str(), Item_func_dayname::val_str(), Item_func_monthname::val_str(), Item_sum_udf_str::val_str(), Item_func_group_concat::val_str(), Item_sum_hybrid::val_str(), Item_sum_distinct::val_str(), Item_in_subselect::val_str(), Item_singlerow_subselect::val_str(), Item_func_binary::val_str(), Item_func_user::val_str(), Item_func_quote::val_str(), Item_func_inet_ntoa::val_str(), Item_func_export_set::val_str(), Item_load_file::val_str(), Item_func_unhex::val_str(), Item_func_hex::val_str(), Item_func_collation::val_str(), Item_func_charset::val_str(), Item_func_set_collation::val_str(), Item_func_conv_charset::val_str(), Item_func_conv::val_str(), Item_func_lpad::val_str(), Item_func_rpad::val_str(), Item_func_repeat::val_str(), Item_func_char::val_str(), Item_func_make_set::val_str(), Item_func_elt::val_str(), Item_func_format::val_str(), Item_func_soundex::val_str(), Item_func_database::val_str(), Item_func_decode::val_str(), Item_func_encode::val_str(), Item_func_encrypt::val_str(), Item_func_old_password::val_str(), Item_func_password::val_str(), Item_func_trim::val_str(), Item_func_rtrim::val_str(), Item_func_ltrim::val_str(), Item_func_substr_index::val_str(), Item_func_substr::val_str(), Item_func_right::val_str(), Item_func_left::val_str(), Item_str_conv::val_str(), Item_func_insert::val_str(), Item_func_replace::val_str(), Item_func_reverse::val_str(), Item_func_concat_ws::val_str(), Item_func_des_decrypt::val_str(), Item_func_des_encrypt::val_str(), Item_func_concat::val_str(), Item_func_aes_decrypt::val_str(), Item_func_aes_encrypt::val_str(), Item_func_sha::val_str(), Item_func_md5::val_str(), Item_func_udf_str::val_str(), Item_func_min_max::val_str(), Item_decimal_typecast::val_str(), Item_func_numhybrid::val_str(), Item_int_func::val_str(), Item_real_func::val_str(), Item_func_case::val_str(), Item_func_nullif::val_str(), Item_func_if::val_str(), Item_direct_ref::val_str(), Item_ref::val_str(), Item_ref_null_helper::val_str(), Item_copy_string::val_str(), Item_null::val_str(), Item_field::val_str(), Item_name_const::val_str(), Item_sp_variable::val_str(), val_string_from_decimal(), val_string_from_int(), and val_string_from_real().
Definition at line 482 of file item.h.
Referenced by cleanup(), make_unique_view_field_name(), and rename().
Definition at line 479 of file item.h.
Referenced by Item_string::append(), sys_var_thd_lc_time_names::check(), sys_var_str::check(), Item_param::convert_str_value(), Item_copy_string::copy(), create_func_space(), Item_hex_string::eq(), Item_param::eq(), Item_string::eq(), Item_func_date_format::fix_length_and_dec(), Ndb_item::get_val(), Item_func_user::init(), Item_bin_string::Item_bin_string(), Item_func_conv_charset::Item_func_conv_charset(), Item_func_user::Item_func_user(), Item_hex_string::Item_hex_string(), Item_string::Item_string(), Item_string::new_item(), Item_param::new_item(), Ndb_item::pack_length(), Item_func_set_collation::print(), Item_string::print(), Item_decimal::print(), Item_uint::print(), Item_int::print(), Item_param::query_val_str(), Item_param::reset(), Item_func_sysconst::safe_charset_converter(), Item_hex_string::safe_charset_converter(), Item_static_string_func::safe_charset_converter(), Item_param::safe_charset_converter(), Item_string::safe_charset_converter(), Item_static_float_func::safe_charset_converter(), Item_num::safe_charset_converter(), Item_hex_string::save_in_field(), Item_string::save_in_field(), save_in_field(), Item_copy_string::save_in_field(), Item_param::save_in_field(), select_describe(), Item_proc_string::set(), Item_param::set_longdata(), Item_param::set_str(), Item_string::set_str_with_copy(), Item_ref::str_result(), Item_field::str_result(), sys_check_ftb_syntax(), sys_check_log_path(), sys_update_ftb_syntax(), sys_var_thd_dbug::update(), update_sys_var_str(), update_sys_var_str_path(), Item_proc_string::val_decimal(), Item_func_numhybrid::val_decimal(), Item_copy_string::val_decimal(), Item_param::val_decimal(), val_decimal_from_string(), Item_proc_string::val_int(), Item_nodeset_to_const_comparator::val_int(), Item_func_group_concat::val_int(), Item_func_numhybrid::val_int(), Item_copy_string::val_int(), Item_hex_string::val_int(), Item_param::val_int(), Item_string::val_int(), Item_proc_string::val_real(), Item_func_group_concat::val_real(), Item_sum_hybrid::val_real(), Item_func_numhybrid::val_real(), Item_copy_string::val_real(), Item_param::val_real(), Item_string::val_real(), Item_proc_string::val_str(), Item_char_typecast::val_str(), Item_func_sysdate_local::val_str(), Item_func_now::val_str(), Item_func_curtime::val_str(), Item_func_user::val_str(), Item_func_conv_charset::val_str(), Item_func_aes_decrypt::val_str(), Item_func_aes_encrypt::val_str(), Item_func_numhybrid::val_str(), Item_hex_string::val_str(), Item_string::val_str(), Item_copy_string::val_str(), Item_field::val_str(), and Item_sp_variable::val_str().
Definition at line 489 of file item.h.
Referenced by Item_sum_max::add(), Item_sum_min::add(), Item_func_set_user_var::check(), Item_func::count_decimal_length(), Item_func::count_only_length(), Item_sum_avg::create_tmp_field(), Item_sum::create_tmp_field(), create_tmp_field_from_item(), decimal_precision(), Item_int::eq(), Item_param::eq(), Item_func_int_val::find_num_type(), Item_func_num1::find_num_type(), Item_sum_hybrid::fix_fields(), Item_sp_variable::fix_fields(), Item_sum_bit::fix_length_and_dec(), Item_sum_variance::fix_length_and_dec(), Item_sum_avg::fix_length_and_dec(), Item_sum_sum::fix_length_and_dec(), Item_singlerow_subselect::fix_length_and_dec(), Item_func_bit::fix_length_and_dec(), Item_func_unsigned::fix_length_and_dec(), Item_func_signed::fix_length_and_dec(), Item_func_min_max::fix_length_and_dec(), Item_func_round::fix_length_and_dec(), Item_func_neg::fix_length_and_dec(), Item_func_int_div::fix_length_and_dec(), Item_func_minus::fix_length_and_dec(), Item_func_nullif::fix_length_and_dec(), Item_func_if::fix_length_and_dec(), Hybrid_type_traits_integer::fix_length_and_dec(), init_make_field(), Item_func_round::int_op(), Item_func_floor::int_op(), Item_func_ceiling::int_op(), Item(), Item_avg_field::Item_avg_field(), Item_decimal::Item_decimal(), Item_hex_string::Item_hex_string(), Item_int::Item_int(), Item_int_with_ref::Item_int_with_ref(), Item_return_int::Item_return_int(), Item_uint::Item_uint(), Item_variance_field::Item_variance_field(), Item_type_holder::join_types(), make_sortkey(), Item_sum_hybrid::min_max_update_int_field(), Item_decimal::neg(), Item_int_with_ref::new_item(), Item_param::new_item(), Item_sum_hybrid::reset_field(), Item_func_div::result_precision(), Item_func_mul::result_precision(), Item_func_additive_op::result_precision(), Item_int::save_in_field(), save_in_field(), Item_param::save_in_field(), send(), Item_param::set_decimal(), Item_decimal::set_decimal_value(), Item_field::set_field(), Item_param::set_from_user_var(), set_param_int32(), set_param_short(), set_param_tiny(), Item_ref::set_properties(), set_row(), Item_sum_distinct::setup(), Item_cache::setup(), Item_cache_int::store(), Item_func::tmp_table_field(), tmp_table_field_from_field_type(), Item_func_set_user_var::update(), Item_proc_int::val_decimal(), Item_sum_hybrid::val_decimal(), Item_decimal_typecast::val_decimal(), Item_func_numhybrid::val_decimal(), Item_func::val_decimal(), Item_cache_int::val_decimal(), Item_param::val_decimal(), Item_int::val_decimal(), val_decimal_from_int(), Item_sum_hybrid::val_int(), Item_sum_distinct::val_int(), Item_sum_sum::val_int(), Item_func_int_div::val_int(), Item_decimal_typecast::val_int(), Item_func_numhybrid::val_int(), Item_cache_decimal::val_int(), Item_param::val_int(), Item_decimal::val_int(), val_int_from_decimal(), Item_sum_hybrid::val_real(), Item_sum_hybrid::val_str(), Item_func_conv::val_str(), Item_func_min_max::val_str(), Item_func_numhybrid::val_str(), Item_int_func::val_str(), and val_string_from_int().
Definition at line 495 of file item.h.
Referenced by Item_func::fix_fields(), Item_cond::fix_fields(), Item(), and Item_subselect::Item_subselect().
Definition at line 490 of file item.h.
Referenced by change_to_use_tmp_fields(), count_field_types(), create_tmp_table(), Item_row::fix_fields(), Item_func::fix_fields(), Item_cond::fix_fields(), Item_in_optimizer::fix_fields(), Item_in_optimizer::fix_left(), Item_func_make_set::fix_length_and_dec(), Item_func_interval::fix_length_and_dec(), Item_subselect::get_tmp_table_item(), Item_func::get_tmp_table_item(), Item(), Item_func::Item_func(), Item_sum::mark_as_sum_func(), JOIN::prepare(), resolve_ref_in_select_and_group(), JOIN::rollup_init(), Item_in_subselect::row_value_transformer(), Item_func::set_arguments(), Item_ref::set_properties(), Item_in_subselect::single_value_transformer(), and split_sum_func2().
1.4.7

