~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/blob.h

  • Committer: Andrew Hutchings
  • Date: 2011-01-10 16:11:45 UTC
  • mto: (2069.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2070.
  • Revision ID: andrew@linuxjedi.co.uk-20110110161145-isdc0ncbo2hx2n5c
Fix pandora error message

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/field/str.h>
25
25
 
26
 
#include <drizzled/global_charset_info.h>
 
26
#include "drizzled/global_charset_info.h"
27
27
 
28
28
#include <string>
29
29
 
30
 
#include <drizzled/visibility.h>
31
 
 
32
30
namespace drizzled
33
31
{
34
32
 
35
33
/**
36
34
 * Class representing a BLOB data type column
37
35
 */
38
 
class DRIZZLED_API Field_blob :
39
 
  public Field_str
40
 
{
 
36
class Field_blob :public Field_str {
41
37
protected:
42
38
  String value;                         // For temporaries
43
39
public:
77
73
  int  store(double nr);
78
74
  int  store(int64_t nr, bool unsigned_val);
79
75
 
80
 
  double val_real(void) const;
81
 
  int64_t val_int(void) const;
82
 
  String *val_str(String*,String *) const;
83
 
  type::Decimal *val_decimal(type::Decimal *) const;
 
76
  double val_real(void);
 
77
  int64_t val_int(void);
 
78
  String *val_str(String*,String *);
 
79
  type::Decimal *val_decimal(type::Decimal *);
84
80
  int cmp_max(const unsigned char *, const unsigned char *, uint32_t max_length);
85
81
  int cmp(const unsigned char *a,const unsigned char *b)
86
82
    { return cmp_max(a, b, UINT32_MAX); }
132
128
  */
133
129
  uint32_t get_packed_size(const unsigned char *ptr_arg, bool low_byte_first);
134
130
 
135
 
  DRIZZLED_API uint32_t get_length(uint32_t row_offset= 0) const;
136
 
  DRIZZLED_API uint32_t get_length(const unsigned char *ptr, bool low_byte_first) const;
137
 
  DRIZZLED_API uint32_t get_length(const unsigned char *ptr_arg) const;
 
131
  uint32_t get_length(uint32_t row_offset= 0);
 
132
  uint32_t get_length(const unsigned char *ptr, bool low_byte_first);
 
133
  uint32_t get_length(const unsigned char *ptr_arg);
138
134
  void put_length(unsigned char *pos, uint32_t length);
139
135
  inline void get_ptr(unsigned char **str)
140
136
    {