~eday/drizzle/eday-dev

« back to all changes in this revision

Viewing changes to drizzled/select_to_file.h

  • Committer: Eric Day
  • Date: 2010-01-07 20:02:38 UTC
  • mfrom: (971.3.291 staging)
  • Revision ID: eday@oddments.org-20100107200238-uqw8v6kv9pl7nny5
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_SELECT_TO_FILE_H
22
22
#define DRIZZLED_SELECT_TO_FILE_H
23
23
 
24
 
class select_to_file :public select_result_interceptor {
 
24
typedef struct st_io_cache IO_CACHE;
 
25
 
 
26
class select_to_file : public select_result_interceptor
 
27
{
25
28
protected:
26
29
  file_exchange *exchange;
27
 
  File file;
28
 
  IO_CACHE cache;
 
30
  int file;
 
31
  IO_CACHE *cache;
29
32
  ha_rows row_count;
30
33
  char path[FN_REFLEN];
31
34
 
32
35
public:
33
 
  select_to_file(file_exchange *ex) :exchange(ex), file(-1),row_count(0L)
34
 
  { path[0]=0; }
35
 
  ~select_to_file();
 
36
  select_to_file(file_exchange *ex);
 
37
  virtual ~select_to_file();
36
38
  void send_error(uint32_t errcode,const char *err);
37
39
  bool send_eof();
38
40
  void cleanup();