~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/str.h

  • Committer: Brian Aker
  • Date: 2011-01-13 09:25:42 UTC
  • mfrom: (2073.1.4 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@gir-3-20110113092542-lmomnx1t0zpidzl4
Merge of current catalogs

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/field.h>
25
25
 
26
 
#include <drizzled/visibility.h>
27
 
 
28
26
namespace drizzled
29
27
{
30
28
 
32
30
 
33
31
/* base class for all string related classes */
34
32
 
35
 
class DRIZZLED_API Field_str :
36
 
  public Field
37
 
{
 
33
class Field_str :public Field {
38
34
protected:
39
35
  const CHARSET_INFO *field_charset;
40
36
  enum Derivation field_derivation;
65
61
  bool binary() const { return field_charset == &my_charset_bin; }
66
62
  uint32_t max_display_length() { return field_length; }
67
63
  friend class CreateField;
68
 
  type::Decimal *val_decimal(type::Decimal *) const;
 
64
  type::Decimal *val_decimal(type::Decimal *);
69
65
  virtual bool str_needs_quotes() { return true; }
70
66
  uint32_t max_data_length() const;
71
67
};