~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.h

  • Committer: lbieber
  • Date: 2010-01-21 18:21:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1277.
  • Revision ID: lbieber@orisndriz08-20100121182139-h549us3gsysyyl0e
clean up japanese tests, remove tests that no longer apply.  In test-run.pl change mysql_version_id to drizzle_version_id

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 {
31
28
public:
82
79
  uint32_t size_of() const { return sizeof(*this); }
83
80
  uint32_t pack_length() const { return (uint32_t) bin_size; }
84
81
  uint32_t pack_length_from_metadata(uint32_t field_metadata);
 
82
  uint32_t row_pack_length() { return pack_length(); }
 
83
  int compatible_field_size(uint32_t field_metadata);
85
84
  uint32_t is_equal(CreateField *new_field);
86
85
  virtual const unsigned char *unpack(unsigned char* to, const unsigned char *from,
87
86
                                      uint32_t param_data, bool low_byte_first);
88
87
};
89
88
 
90
 
} /* namespace drizzled */
91
 
 
92
89
#endif /* DRIZZLED_FIELD_DECIMAL_H */
93
90