~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/str.h

  • Committer: Monty Taylor
  • Date: 2010-12-26 01:32:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226013211-c1tx52h7evovmijg
fixed dict and eval.

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;
52
48
  using Field::store;
53
49
  int  store(double nr);
54
50
  int  store(int64_t nr, bool unsigned_val)=0;
55
 
  int  store_decimal(const type::Decimal *);
 
51
  int  store_decimal(const my_decimal *);
56
52
  int  store(const char *to,uint32_t length, const CHARSET_INFO * const cs)=0;
57
53
 
58
54
  uint32_t size_of() const { return sizeof(*this); }
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 *);
 
64
  my_decimal *val_decimal(my_decimal *);
69
65
  virtual bool str_needs_quotes() { return true; }
70
66
  uint32_t max_data_length() const;
71
67
};