~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.cc

  • Committer: Mark Atwood
  • Date: 2011-06-22 05:48:25 UTC
  • mfrom: (2318.6.17 refactor12)
  • Revision ID: me@mark.atwood.name-20110622054825-mf8nxjs9dxcpvcfe
bzr merge lp:~olafvdspek/drizzle/refactor12

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
}
315
315
 
316
316
 
317
 
void Field_decimal::sort_string(unsigned char *buff,
318
 
                                uint32_t )
 
317
void Field_decimal::sort_string(unsigned char *buff, uint32_t)
319
318
{
320
319
  memcpy(buff, ptr, bin_size);
321
320
}
322
321
 
323
 
 
324
 
void Field_decimal::sql_type(String &str) const
325
 
{
326
 
  const charset_info_st * const cs= str.charset();
327
 
  str.length(cs->cset->snprintf(cs, (char*) str.ptr(), str.alloced_length(),
328
 
                                "decimal(%d,%d)", precision, (int)dec));
329
 
}
330
 
 
331
 
 
332
322
/**
333
323
  Returns the number of bytes field uses in row-based replication
334
324
  row packed size.