~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/fdecimal.h

  • Committer: Brian Aker
  • Date: 2008-12-06 23:57:32 UTC
  • mfrom: (656.1.10 devel)
  • Revision ID: brian@tangent.org-20081206235732-jx228bczpvmxu8ww
Merge from Monty

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(); }