~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.h

  • Committer: Monty Taylor
  • Date: 2009-01-06 18:46:25 UTC
  • mto: This revision was merged to the branch mainline in revision 762.
  • Revision ID: mordred@inaugust.com-20090106184625-kqu7nsnwjwm5jv4s
Enabled dirty_close.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    Constructors take max_length of the field as a parameter - not the
36
36
    precision as the number of decimal digits allowed.
37
37
    So for example we need to count length from precision handling
38
 
    CREATE TABLE ( DECIMAL(x,y)) 
 
38
    CREATE TABLE ( DECIMAL(x,y))
39
39
  */
40
40
  Field_new_decimal(unsigned char *ptr_arg, uint32_t len_arg, unsigned char *null_ptr_arg,
41
41
                    unsigned char null_bit_arg,
64
64
  bool zero_pack() const { return 0; }
65
65
  void sql_type(String &str) const;
66
66
  uint32_t max_display_length() { return field_length; }
67
 
  uint32_t size_of() const { return sizeof(*this); } 
 
67
  uint32_t size_of() const { return sizeof(*this); }
68
68
  uint32_t pack_length() const { return (uint32_t) bin_size; }
69
69
  uint32_t pack_length_from_metadata(uint32_t field_metadata);
70
70
  uint32_t row_pack_length() { return pack_length(); }