~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/varstring.cc

  • Committer: Brian Aker
  • Date: 2011-02-20 21:00:32 UTC
  • mfrom: (2181.2.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110220210032-fc9g8qugt0n1yjr6
Brian Aker 2011-02-20 Merge in additional header bits for strerror_r
Brian Aker 2011-02-20 Create CONST on additional Field methods.
Brian Aker 2011-02-19 Further commit const on field.
Brian Aker 2011-02-18 This fixes DEBUG based compiles.
Brian Aker 2011-02-18 Protect all of the val_* methods from modification.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
}
125
125
 
126
126
 
127
 
double Field_varstring::val_real(void)
 
127
double Field_varstring::val_real(void) const
128
128
{
129
129
  int not_used;
130
130
  char *end_not_used;
138
138
}
139
139
 
140
140
 
141
 
int64_t Field_varstring::val_int(void)
 
141
int64_t Field_varstring::val_int(void) const
142
142
{
143
143
  int not_used;
144
144
  char *end_not_used;
152
152
                     &end_not_used, &not_used);
153
153
}
154
154
 
155
 
String *Field_varstring::val_str(String *,
156
 
                                 String *val_ptr)
 
155
String *Field_varstring::val_str(String *, String *val_ptr) const
157
156
{
158
157
  uint32_t length=  length_bytes == 1 ? (uint32_t) *ptr : uint2korr(ptr);
159
158
 
165
164
}
166
165
 
167
166
 
168
 
type::Decimal *Field_varstring::val_decimal(type::Decimal *decimal_value)
 
167
type::Decimal *Field_varstring::val_decimal(type::Decimal *decimal_value) const
169
168
{
170
169
  uint32_t length;
171
170