~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.h

pandora-build v0.71. Added check for avahi.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/field/num.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
/* New decimal/numeric field which use fixed point arithmetic */
30
27
class Field_decimal :public Field_num {
 
28
private:
 
29
  int do_save_field_metadata(unsigned char *first_byte);
31
30
public:
32
31
 
33
32
  using Field::store;
82
81
  uint32_t size_of() const { return sizeof(*this); }
83
82
  uint32_t pack_length() const { return (uint32_t) bin_size; }
84
83
  uint32_t pack_length_from_metadata(uint32_t field_metadata);
 
84
  uint32_t row_pack_length() { return pack_length(); }
 
85
  int compatible_field_size(uint32_t field_metadata);
85
86
  uint32_t is_equal(CreateField *new_field);
86
87
  virtual const unsigned char *unpack(unsigned char* to, const unsigned char *from,
87
88
                                      uint32_t param_data, bool low_byte_first);
88
89
};
89
90
 
90
 
} /* namespace drizzled */
91
 
 
92
91
#endif /* DRIZZLED_FIELD_DECIMAL_H */
93
92