~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_dumpvar.h

  • Committer: Stewart Smith
  • Date: 2009-06-16 00:46:49 UTC
  • mto: (1119.2.6 merge)
  • mto: This revision was merged to the branch mainline in revision 1124.
  • Revision ID: stewart@flamingspork.com-20090616004649-k2qt6b31sorpi6am
make type_blob test not leave tables behind

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
 
20
 
20
21
#ifndef DRIZZLED_SELECT_DUMPVAR_H
21
22
#define DRIZZLED_SELECT_DUMPVAR_H
22
23
 
23
 
#include "drizzled/error.h"
24
 
#include "drizzled/function/set_user_var.h"
 
24
#include <drizzled/error.h>
25
25
 
26
26
#include <vector>
27
27
 
28
 
namespace drizzled
29
 
{
30
 
 
31
28
class select_dumpvar :public select_result_interceptor {
32
29
  ha_rows row_count;
33
30
public:
34
 
  std::vector<var *> var_list;
 
31
  std::vector<my_var *> var_list;
35
32
  select_dumpvar()  { var_list.clear(); row_count= 0;}
36
33
  ~select_dumpvar() {}
37
34
 
57
54
  bool send_data(List<Item> &items)
58
55
  {
59
56
    
60
 
    std::vector<var *>::const_iterator iter= var_list.begin();
 
57
    std::vector<my_var *>::const_iterator iter= var_list.begin();
61
58
 
62
59
    List_iterator<Item> it(items);
63
 
    Item *item= NULL;
64
 
    var *current_var;
 
60
    Item *item;
 
61
    my_var *current_var;
65
62
 
66
63
    if (unit->offset_limit_cnt)
67
64
    {                                           // using limit offset,count
104
101
 
105
102
};
106
103
 
107
 
} /* namespace drizzled */
108
 
 
109
104
#endif /* DRIZZLED_SELECT_DUMPVAR_H */