~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-24 15:08:05 UTC
  • mto: This revision was merged to the branch mainline in revision 2349.
  • Revision ID: olafvdspek@gmail.com-20110624150805-x1d6zfc2b17afbx0
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
  change_double_for_sort(nr, to);
210
210
}
211
211
 
212
 
 
213
 
void Field_double::sql_type(String &res) const
214
 
{
215
 
  const charset_info_st * const cs=res.charset();
216
 
  if (dec == NOT_FIXED_DEC)
217
 
  {
218
 
    res.set_ascii(STRING_WITH_LEN("double"));
219
 
  }
220
 
  else
221
 
  {
222
 
    res.length(cs->cset->snprintf(cs,(char*) res.ptr(),res.alloced_length(),
223
 
                            "double(%d,%d)",(int) field_length,dec));
224
 
  }
225
 
}
226
 
 
227
212
} /* namespace drizzled */