~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/real.h

  • Committer: Stewart Smith
  • Date: 2009-06-16 00:45:15 UTC
  • mto: (1119.2.6 merge)
  • mto: This revision was merged to the branch mainline in revision 1124.
  • Revision ID: stewart@flamingspork.com-20090616004515-bgr8e62psvn2820l
make snowman test not leave tables behind after running

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_FIELD_REAL_H
22
 
#define DRIZZLED_FIELD_REAL_H
 
21
#ifndef DRIZZLE_SERVER_FIELD_REAL
 
22
#define DRIZZLE_SERVER_FIELD_REAL
23
23
 
24
24
#include <drizzled/field/num.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
/* base class for float and double and decimal (old one) */
30
27
class Field_real :public Field_num {
31
28
public:
42
39
               field_name_arg, dec_arg, zero_arg, unsigned_arg),
43
40
    not_fixed(dec_arg >= NOT_FIXED_DEC)
44
41
    {}
45
 
  int store_decimal(const type::Decimal *);
46
 
  type::Decimal *val_decimal(type::Decimal *);
 
42
  int store_decimal(const my_decimal *);
 
43
  my_decimal *val_decimal(my_decimal *);
47
44
  int truncate(double *nr, double max_length);
48
45
  uint32_t max_display_length() { return field_length; }
49
46
  uint32_t size_of() const { return sizeof(*this); }
53
50
                      uint32_t max_length, bool low_byte_first);
54
51
};
55
52
 
56
 
} /* namespace drizzled */
57
 
 
58
 
#endif /* DRIZZLED_FIELD_REAL_H */
 
53
#endif