~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/varstring.h

  • Committer: Monty Taylor
  • Date: 2009-01-29 00:39:19 UTC
  • mto: (779.7.3 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090129003919-8tv61hkqqs9xr2pk
Some Sun warning fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
                                    length_bytes : 0);
56
56
  }
57
57
  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
  }
58
64
  int  store(int64_t nr, bool unsigned_val);
59
65
  int  store(double nr) { return Field_str::store(nr); } /* QQ: To be deleted */
60
66
  double val_real(void);
61
67
  int64_t val_int(void);
62
68
  String *val_str(String*,String *);
 
69
  inline String *val_str(String *str) { return val_str(str, str); }
63
70
  my_decimal *val_decimal(my_decimal *);
64
71
  int cmp_max(const unsigned char *, const unsigned char *, uint32_t max_length);
 
72
  inline  int cmp(const unsigned char *str) { return cmp(ptr,str); }
65
73
  int cmp(const unsigned char *a,const unsigned char *b)
66
74
  {
67
75
    return cmp_max(a, b, UINT32_MAX);
73
81
  void set_key_image(const unsigned char *buff,uint32_t length);
74
82
  void sql_type(String &str) const;
75
83
  virtual unsigned char *pack(unsigned char *to, const unsigned char *from,
76
 
                      uint32_t max_length, bool low_byte_first);
 
84
                              uint32_t max_length,
 
85
                              bool low_byte_first);
 
86
 
 
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
 
77
93
  unsigned char *pack_key(unsigned char *to, const unsigned char *from, uint32_t max_length, bool low_byte_first);
78
94
  unsigned char *pack_key_from_key_image(unsigned char* to, const unsigned char *from,
79
95
                                 uint32_t max_length, bool low_byte_first);
80
 
  virtual const unsigned char *unpack(unsigned char* to, const unsigned char *from,
81
 
                              uint32_t param_data, bool low_byte_first);
 
96
  virtual const unsigned char *unpack(unsigned char* to,
 
97
                                      const unsigned char *from,
 
98
                                      uint32_t param_data,
 
99
                                      bool low_byte_first);
 
100
 
 
101
  virtual const unsigned char *unpack(unsigned char* to,
 
102
                                      const unsigned char *from)
 
103
  {
 
104
    return unpack(to, from, 0, false);
 
105
  }
 
106
 
82
107
  const unsigned char *unpack_key(unsigned char* to, const unsigned char *from,
83
108
                          uint32_t max_length, bool low_byte_first);
84
109
  int pack_cmp(const unsigned char *a, const unsigned char *b, uint32_t key_length,