~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
  double precision floating point numbers
43
43
****************************************************************************/
44
44
 
45
 
int Field_double::store(const char *from,uint32_t len, const CHARSET_INFO * const cs)
 
45
int Field_double::store(const char *from,uint32_t len, const charset_info_st * const cs)
46
46
{
47
47
  int error;
48
48
  char *end;
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 * 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 */