~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/row.h

MergedĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
#ifndef DRIZZLED_ITEM_ROW_H
 
21
#define DRIZZLED_ITEM_ROW_H
 
22
 
20
23
class Item_row: public Item
21
24
{
22
25
  Item **items;
25
28
  bool const_item_cache;
26
29
  bool with_null;
27
30
public:
 
31
 
 
32
  using Item::split_sum_func;
 
33
 
28
34
  Item_row(List<Item> &);
29
35
  Item_row(Item_row *item):
30
36
    Item(),
38
44
  enum Type type() const { return ROW_ITEM; };
39
45
  void illegal_method_call(const char *);
40
46
  bool is_null() { return null_value; }
41
 
  void make_field(Send_field *)
 
47
  void make_field(SendField *)
42
48
  {
43
49
    illegal_method_call((const char*)"make_field");
44
50
  };
62
68
    illegal_method_call((const char*)"val_decimal");
63
69
    return 0;
64
70
  };
65
 
  bool fix_fields(THD *thd, Item **ref);
66
 
  void fix_after_pullout(st_select_lex *new_parent, Item **ref);
 
71
  bool fix_fields(Session *session, Item **ref);
 
72
  void fix_after_pullout(Select_Lex *new_parent, Item **ref);
67
73
  void cleanup();
68
 
  void split_sum_func(THD *thd, Item **ref_pointer_array, List<Item> &fields);
 
74
  void split_sum_func(Session *session, Item **ref_pointer_array, List<Item> &fields);
69
75
  table_map used_tables() const { return used_tables_cache; };
70
76
  bool const_item() const { return const_item_cache; };
71
77
  enum Item_result result_type() const { return ROW_RESULT; }
82
88
  bool null_inside() { return with_null; };
83
89
  void bring_value();
84
90
};
 
91
 
 
92
#endif /* DRIZZLED_ITEM_ROW_H */