~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_dumpvar.h

  • Committer: Olaf van der Spek
  • Date: 2011-11-09 18:56:45 UTC
  • mto: This revision was merged to the branch mainline in revision 2457.
  • Revision ID: olafvdspek@gmail.com-20111109185645-3idc8wujj8g55r4a
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
namespace drizzled {
30
30
 
31
 
class select_dumpvar :public select_result_interceptor {
32
 
  ha_rows row_count;
33
 
 
 
31
class select_dumpvar : public select_result_interceptor 
 
32
{
34
33
public:
35
 
  std::vector<var *> var_list;
36
 
  select_dumpvar()  { var_list.clear(); row_count= 0;}
37
 
  ~select_dumpvar() {}
 
34
  int prepare(List<Item>&, Select_Lex_Unit*);
 
35
  bool send_data(List<Item>&);
 
36
  bool send_eof();
38
37
 
39
 
  int prepare(List<Item> &list, Select_Lex_Unit *u);
 
38
  select_dumpvar()  
 
39
  { 
 
40
    row_count= 0;
 
41
  }
40
42
 
41
43
  void cleanup()
42
44
  {
43
45
    row_count= 0;
44
46
  }
45
47
 
46
 
 
47
 
  bool send_data(List<Item> &items);
48
 
 
49
 
  bool send_eof();
50
 
 
 
48
  std::vector<var*> var_list;
 
49
 
 
50
private:
 
51
  ha_rows row_count;
51
52
};
52
53
 
53
54
} /* namespace drizzled */