~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_to_file.h

  • Committer: Patrick Crews
  • Date: 2011-01-29 14:17:35 UTC
  • mto: (2126.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: gleebix@gmail.com-20110129141735-3y2658vt5ur0a33o
Fixes to make test-dbqp

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
 
4
 *  Copyright (C) 2008 Sun Microsystems, Inc.
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
21
21
#ifndef DRIZZLED_SELECT_TO_FILE_H
22
22
#define DRIZZLED_SELECT_TO_FILE_H
23
23
 
 
24
#include <boost/filesystem.hpp>
 
25
 
24
26
namespace drizzled
25
27
{
26
28
 
29
31
typedef struct st_io_cache IO_CACHE;
30
32
}
31
33
 
32
 
class select_to_file : public select_result_interceptor
 
34
class select_to_file :
 
35
  public select_result_interceptor
33
36
{
34
37
protected:
35
38
  file_exchange *exchange;
36
39
  int file;
37
40
  internal::IO_CACHE *cache;
38
41
  ha_rows row_count;
39
 
  char path[FN_REFLEN];
 
42
  boost::filesystem::path path;
40
43
 
41
44
public:
42
45
  select_to_file(file_exchange *ex);
43
46
  virtual ~select_to_file();
44
 
  void send_error(uint32_t errcode,const char *err);
 
47
  void send_error(drizzled::error_t errcode,const char *err);
45
48
  bool send_eof();
46
49
  void cleanup();
47
50
};