~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.h

  • Committer: Andrew Hutchings
  • Date: 2011-01-28 21:33:48 UTC
  • mto: (2126.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2127.
  • Revision ID: andrew@linuxjedi.co.uk-20110128213348-ypi381xo47o80ypo
Backport fix for http://bugs.mysql.com/bug.php?id=57034

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
                unsigned char null_bit_arg,
52
52
                enum utype unireg_check_arg,
53
53
                const char *field_name_arg,
54
 
                uint8_t dec_arg);
55
 
 
 
54
                uint8_t dec_arg,
 
55
                bool zero_arg,
 
56
                bool unsigned_arg);
56
57
  Field_decimal(uint32_t len_arg,
57
58
                bool maybe_null_arg,
58
59
                const char *field_name_arg,
59
60
                uint8_t dec_arg,
60
61
                bool unsigned_arg);
61
 
 
62
62
  enum_field_types type() const { return DRIZZLE_TYPE_DECIMAL;}
63
63
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; }
64
64
  Item_result result_type () const { return DECIMAL_RESULT; }
70
70
  int  store(int64_t nr, bool unsigned_val);
71
71
  int store_time(type::Time &ltime, type::timestamp_t t_type);
72
72
  int  store_decimal(const type::Decimal *);
73
 
  double val_real(void) const;
74
 
  int64_t val_int(void) const;
75
 
  type::Decimal *val_decimal(type::Decimal *) const;
76
 
  String *val_str(String*, String *) const;
 
73
  double val_real(void);
 
74
  int64_t val_int(void);
 
75
  type::Decimal *val_decimal(type::Decimal *);
 
76
  String *val_str(String*, String *);
77
77
  int cmp(const unsigned char *, const unsigned char *);
78
78
  void sort_string(unsigned char *buff, uint32_t length);
79
79
  bool zero_pack() const { return 0; }