~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_export.h

  • Committer: Jay Pipes
  • Date: 2009-02-21 16:00:06 UTC
  • mto: (907.1.1 trunk-with-temporal)
  • mto: This revision was merged to the branch mainline in revision 908.
  • Revision ID: jpipes@serialcoder-20090221160006-vnk3wt4qbcz62eru
Removes the TIME column type and related time functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_SELECT_EXPORT_H
22
22
#define DRIZZLED_SELECT_EXPORT_H
23
23
 
 
24
 
24
25
/*
25
26
 List of all possible characters of a numeric value text representation.
26
27
*/
27
28
#define NUMERIC_CHARS ".0123456789e+-"
28
29
 
29
 
namespace drizzled
30
 
{
31
30
 
32
31
class select_export :public select_to_file {
33
32
  uint32_t field_term_length;
57
56
  ~select_export();
58
57
  int prepare(List<Item> &list, Select_Lex_Unit *u);
59
58
  bool send_data(List<Item> &items);
60
 
private:
61
 
  inline bool needs_escaping(char character, bool enclosed)
62
 
  {
63
 
    if ((character == escape_char) ||
64
 
        (enclosed ? character == field_sep_char : character == field_term_char) ||
65
 
        character == line_sep_char  ||
66
 
        (character == 0))
67
 
      return true;
68
 
 
69
 
    return false;
70
 
 
71
 
  }
72
59
};
73
60
 
74
 
} /* namespace drizzled */
75
 
 
76
61
#endif /* DRIZZLED_SELECT_EXPORT_H */