#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:

