~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/str.h

  • Committer: Stewart Smith
  • Date: 2011-02-24 07:46:16 UTC
  • mto: (2200.1.2 drizzle-staging)
  • mto: This revision was merged to the branch mainline in revision 2201.
  • Revision ID: stewart@flamingspork.com-20110224074616-l2rmp406vf78x71q
add ER_NO_LOCK_HELD error code, and expect it in case of UNLOCK TABLES without any locks held.

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
 
26
28
namespace drizzled
27
29
{
28
30
 
30
32
 
31
33
/* base class for all string related classes */
32
34
 
33
 
class Field_str :public Field {
 
35
class DRIZZLED_API Field_str :
 
36
  public Field
 
37
{
34
38
protected:
35
39
  const CHARSET_INFO *field_charset;
36
40
  enum Derivation field_derivation;
48
52
  using Field::store;
49
53
  int  store(double nr);
50
54
  int  store(int64_t nr, bool unsigned_val)=0;
51
 
  int  store_decimal(const my_decimal *);
 
55
  int  store_decimal(const type::Decimal *);
52
56
  int  store(const char *to,uint32_t length, const CHARSET_INFO * const cs)=0;
53
57
 
54
58
  uint32_t size_of() const { return sizeof(*this); }
61
65
  bool binary() const { return field_charset == &my_charset_bin; }
62
66
  uint32_t max_display_length() { return field_length; }
63
67
  friend class CreateField;
64
 
  my_decimal *val_decimal(my_decimal *);
 
68
  type::Decimal *val_decimal(type::Decimal *) const;
65
69
  virtual bool str_needs_quotes() { return true; }
66
70
  uint32_t max_data_length() const;
67
71
};