~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/row.h

pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
macros.
Add PANDORA_DRIZZLE_BUILD to run the extra checks that drizzle needs that 
plugins would also need to run so we can just use that macro in generated
external plugin builds.
Added support to register_plugins for external plugin building.
Renamed register_plugins.py to pandora-plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000 MySQL AB
2
 
 
3
 
   This program is free software; you can redistribute it and/or modify
4
 
   it under the terms of the GNU General Public License as published by
5
 
   the Free Software Foundation; version 2 of the License.
6
 
 
7
 
   This program is distributed in the hope that it will be useful,
8
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
   GNU General Public License for more details.
11
 
 
12
 
   You should have received a copy of the GNU General Public License
13
 
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 Sun Microsystems
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; version 2 of the License.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 */
 
19
 
 
20
#ifndef DRIZZLED_ITEM_ROW_H
 
21
#define DRIZZLED_ITEM_ROW_H
15
22
 
16
23
class Item_row: public Item
17
24
{
18
25
  Item **items;
19
26
  table_map used_tables_cache;
20
 
  uint arg_count;
 
27
  uint32_t arg_count;
21
28
  bool const_item_cache;
22
29
  bool with_null;
23
30
public:
 
31
 
 
32
  using Item::split_sum_func;
 
33
 
24
34
  Item_row(List<Item> &);
25
35
  Item_row(Item_row *item):
26
36
    Item(),
34
44
  enum Type type() const { return ROW_ITEM; };
35
45
  void illegal_method_call(const char *);
36
46
  bool is_null() { return null_value; }
37
 
  void make_field(Send_field *)
 
47
  void make_field(SendField *)
38
48
  {
39
49
    illegal_method_call((const char*)"make_field");
40
50
  };
58
68
    illegal_method_call((const char*)"val_decimal");
59
69
    return 0;
60
70
  };
61
 
  bool fix_fields(THD *thd, Item **ref);
62
 
  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);
63
73
  void cleanup();
64
 
  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);
65
75
  table_map used_tables() const { return used_tables_cache; };
66
76
  bool const_item() const { return const_item_cache; };
67
77
  enum Item_result result_type() const { return ROW_RESULT; }
68
78
  void update_used_tables();
69
79
  virtual void print(String *str, enum_query_type query_type);
70
80
 
71
 
  bool walk(Item_processor processor, bool walk_subquery, uchar *arg);
72
 
  Item *transform(Item_transformer transformer, uchar *arg);
 
81
  bool walk(Item_processor processor, bool walk_subquery, unsigned char *arg);
 
82
  Item *transform(Item_transformer transformer, unsigned char *arg);
73
83
 
74
 
  uint cols() { return arg_count; }
75
 
  Item* element_index(uint i) { return items[i]; }
76
 
  Item** addr(uint i) { return items + i; }
77
 
  bool check_cols(uint c);
 
84
  uint32_t cols() { return arg_count; }
 
85
  Item* element_index(uint32_t i) { return items[i]; }
 
86
  Item** addr(uint32_t i) { return items + i; }
 
87
  bool check_cols(uint32_t c);
78
88
  bool null_inside() { return with_null; };
79
89
  void bring_value();
80
90
};
 
91
 
 
92
#endif /* DRIZZLED_ITEM_ROW_H */