~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/varstring.h

  • Committer: Monty Taylor
  • Date: 2009-01-30 04:39:04 UTC
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090130043904-gphdonl7m6zdz06v
Cleaned up warnings up through innodb.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
class Field_varstring :public Field_longstr {
28
28
public:
 
29
 
 
30
  using Field::store;
 
31
  using Field::pack;
 
32
  using Field::unpack;
 
33
  using Field::val_int;
 
34
  using Field::val_str;
 
35
 
29
36
  /*
30
37
    The maximum space available in a Field_varstring, in bytes. See
31
38
    length_bytes.
55
62
                                    length_bytes : 0);
56
63
  }
57
64
  int  store(const char *to,uint32_t length, const CHARSET_INFO * const charset);
58
 
  virtual int store(const char *to, uint32_t length, 
59
 
                    const CHARSET_INFO * const cs,
60
 
                    enum_check_fields check_level)
61
 
  {
62
 
    return Field::store(to, length, cs, check_level);
63
 
  }
 
65
 
 
66
 
64
67
  int  store(int64_t nr, bool unsigned_val);
65
68
  int  store(double nr) { return Field_str::store(nr); } /* QQ: To be deleted */
66
69
  double val_real(void);
84
87
                              uint32_t max_length,
85
88
                              bool low_byte_first);
86
89
 
87
 
  virtual unsigned char *pack(unsigned char *to, const unsigned char *from)
88
 
  {
89
 
    /* Second two params are unusued in the other pack */
90
 
    return pack(to, from, 0, true);
91
 
  }
92
 
 
93
90
  unsigned char *pack_key(unsigned char *to, const unsigned char *from, uint32_t max_length, bool low_byte_first);
94
91
  unsigned char *pack_key_from_key_image(unsigned char* to, const unsigned char *from,
95
92
                                 uint32_t max_length, bool low_byte_first);
98
95
                                      uint32_t param_data,
99
96
                                      bool low_byte_first);
100
97
 
101
 
  virtual const unsigned char *unpack(unsigned char* to,
102
 
                                      const unsigned char *from)
103
 
  {
104
 
    return unpack(to, from, 0, false);
105
 
  }
106
 
 
107
98
  const unsigned char *unpack_key(unsigned char* to, const unsigned char *from,
108
99
                          uint32_t max_length, bool low_byte_first);
109
100
  int pack_cmp(const unsigned char *a, const unsigned char *b, uint32_t key_length,