~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.cc

  • Committer: Jay Pipes
  • Date: 2009-12-08 17:46:38 UTC
  • mfrom: (1240 staging)
  • mto: This revision was merged to the branch mainline in revision 1245.
  • Revision ID: jpipes@serialcoder-20091208174638-exwaq2vbq0bzvyze
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
332
332
 
333
333
 
334
334
/**
335
 
  Save the field metadata for new decimal fields.
336
 
 
337
 
  Saves the precision in the first byte and decimals() in the second
338
 
  byte of the field metadata array at index of *metadata_ptr and
339
 
 *(metadata_ptr + 1).
340
 
 
341
 
 @param   metadata_ptr   First byte of field metadata
342
 
 
343
 
 @returns number of bytes written to metadata_ptr
344
 
*/
345
 
int Field_decimal::do_save_field_metadata(unsigned char *metadata_ptr)
346
 
{
347
 
  *metadata_ptr= precision;
348
 
  *(metadata_ptr + 1)= decimals();
349
 
  return 2;
350
 
}
351
 
 
352
 
 
353
 
/**
354
335
  Returns the number of bytes field uses in row-based replication
355
336
  row packed size.
356
337