~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/size.cc

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
  assert(unsigned_arg);
75
75
}
76
76
 
77
 
int Size::store(const char *from,uint32_t len, const CHARSET_INFO * const cs)
 
77
int Size::store(const char *from,uint32_t len, const charset_info_st * const cs)
78
78
{
79
79
  int error= 0;
80
80
  char *end;
183
183
 
184
184
String *Size::val_str(String *val_buffer, String *) const
185
185
{
186
 
  const CHARSET_INFO * const cs= &my_charset_bin;
 
186
  const charset_info_st * const cs= &my_charset_bin;
187
187
  uint32_t length;
188
188
  uint32_t mlength= max(field_length+1,22*cs->mbmaxlen);
189
189
  val_buffer->alloc(mlength);
240
240
 
241
241
void Size::sql_type(String &res) const
242
242
{
243
 
  const CHARSET_INFO * const cs=res.charset();
 
243
  const charset_info_st * const cs=res.charset();
244
244
  res.length(cs->cset->snprintf(cs,(char*) res.ptr(),res.alloced_length(), "unsigned integer"));
245
245
}
246
246