~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/blob.h

Namespace the parser just a bit, and update our call for the type of parser
we want.

Show diffs side-by-side

added added

removed removed

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