~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.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:
137
137
 
138
138
 
139
139
int Field_decimal::store(const char *from, uint32_t length,
140
 
                         const CHARSET_INFO * const charset_arg)
 
140
                         const charset_info_st * const charset_arg)
141
141
{
142
142
  int err;
143
143
  type::Decimal decimal_value;
323
323
 
324
324
void Field_decimal::sql_type(String &str) const
325
325
{
326
 
  const CHARSET_INFO * const cs= str.charset();
 
326
  const charset_info_st * const cs= str.charset();
327
327
  str.length(cs->cset->snprintf(cs, (char*) str.ptr(), str.alloced_length(),
328
328
                                "decimal(%d,%d)", precision, (int)dec));
329
329
}