~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2009-02-05 03:18:01 UTC
  • mto: This revision was merged to the branch mainline in revision 833.
  • Revision ID: brian@tangent.org-20090205031801-31ynx0ckbme4o8ne
Rename class file_exchange

Show diffs side-by-side

added added

removed removed

Lines of Context:
1444
1444
  XXX: We never call destructor for objects of this class.
1445
1445
*/
1446
1446
 
1447
 
class sql_exchange :public Sql_alloc
 
1447
class file_exchange :public Sql_alloc
1448
1448
{
1449
1449
public:
1450
1450
  enum enum_filetype filetype; /* load XML, Added by Arnold & Erik */
1454
1454
  bool dumpfile;
1455
1455
  ulong skip_lines;
1456
1456
  const CHARSET_INFO *cs;
1457
 
  sql_exchange(char *name, bool dumpfile_flag,
 
1457
  file_exchange(char *name, bool dumpfile_flag,
1458
1458
               enum_filetype filetype_arg= FILETYPE_CSV);
1459
1459
};
1460
1460
 
1538
1538
 
1539
1539
class select_to_file :public select_result_interceptor {
1540
1540
protected:
1541
 
  sql_exchange *exchange;
 
1541
  file_exchange *exchange;
1542
1542
  File file;
1543
1543
  IO_CACHE cache;
1544
1544
  ha_rows row_count;
1545
1545
  char path[FN_REFLEN];
1546
1546
 
1547
1547
public:
1548
 
  select_to_file(sql_exchange *ex) :exchange(ex), file(-1),row_count(0L)
 
1548
  select_to_file(file_exchange *ex) :exchange(ex), file(-1),row_count(0L)
1549
1549
  { path[0]=0; }
1550
1550
  ~select_to_file();
1551
1551
  void send_error(uint32_t errcode,const char *err);
1587
1587
  bool is_unsafe_field_sep;
1588
1588
  bool fixed_row_size;
1589
1589
public:
1590
 
  select_export(sql_exchange *ex) :select_to_file(ex) {}
 
1590
  select_export(file_exchange *ex) :select_to_file(ex) {}
1591
1591
  ~select_export();
1592
1592
  int prepare(List<Item> &list, SELECT_LEX_UNIT *u);
1593
1593
  bool send_data(List<Item> &items);
1596
1596
 
1597
1597
class select_dump :public select_to_file {
1598
1598
public:
1599
 
  select_dump(sql_exchange *ex) :select_to_file(ex) {}
 
1599
  select_dump(file_exchange *ex) :select_to_file(ex) {}
1600
1600
  int prepare(List<Item> &list, SELECT_LEX_UNIT *u);
1601
1601
  bool send_data(List<Item> &items);
1602
1602
};