The world's most popular open source database
#include "mysql_priv.h"#include "sql_select.h"Include dependency graph for item_subselect.cc:

Go to the source code of this file.
Functions | |
| Item * | and_items (Item *cond, Item *item) |
| static Item_result | set_row (List< Item > &item_list, Item *item, Item_cache **row, bool *maybe_null) |
Definition at line 32 of file item_subselect.cc.
References cond.
Referenced by Item_in_subselect::row_value_transformer(), and Item_in_subselect::single_value_transformer().
00033 { 00034 return (cond? (new Item_cond_and(cond, item)) : item); 00035 }
Here is the caller graph for this function:

| static Item_result set_row | ( | List< Item > & | item_list, | |
| Item * | item, | |||
| Item_cache ** | row, | |||
| bool * | maybe_null | |||
| ) | [static] |
Definition at line 1546 of file item_subselect.cc.
References Item::decimals, base_list::elements, Item_cache::get_cache(), Item::max_length, Item::maybe_null, Item::result_type(), ROW_RESULT, Item_cache::setup(), STRING_RESULT, and Item::unsigned_flag.
Referenced by subselect_union_engine::fix_length_and_dec(), and subselect_single_select_engine::fix_length_and_dec().
01548 { 01549 Item_result res_type= STRING_RESULT; 01550 Item *sel_item; 01551 List_iterator_fast<Item> li(item_list); 01552 for (uint i= 0; (sel_item= li++); i++) 01553 { 01554 item->max_length= sel_item->max_length; 01555 res_type= sel_item->result_type(); 01556 item->decimals= sel_item->decimals; 01557 item->unsigned_flag= sel_item->unsigned_flag; 01558 *maybe_null= sel_item->maybe_null; 01559 if (!(row[i]= Item_cache::get_cache(res_type))) 01560 return STRING_RESULT; // we should return something 01561 row[i]->setup(sel_item); 01562 } 01563 if (item_list.elements > 1) 01564 res_type= ROW_RESULT; 01565 return res_type; 01566 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

