24
24
#include <drizzled/field/num.h>
26
26
/* New decimal/numeric field which use fixed point arithmetic */
27
class Field_new_decimal :public Field_num {
27
class Field_decimal :public Field_num {
29
29
int do_save_field_metadata(unsigned char *first_byte);
44
44
So for example we need to count length from precision handling
45
45
CREATE TABLE ( DECIMAL(x,y))
47
Field_new_decimal(unsigned char *ptr_arg,
49
unsigned char *null_ptr_arg,
50
unsigned char null_bit_arg,
51
enum utype unireg_check_arg,
52
const char *field_name_arg,
56
Field_new_decimal(uint32_t len_arg,
58
const char *field_name_arg,
61
enum_field_types type() const { return DRIZZLE_TYPE_NEWDECIMAL;}
47
Field_decimal(unsigned char *ptr_arg,
49
unsigned char *null_ptr_arg,
50
unsigned char null_bit_arg,
51
enum utype unireg_check_arg,
52
const char *field_name_arg,
56
Field_decimal(uint32_t len_arg,
58
const char *field_name_arg,
61
enum_field_types type() const { return DRIZZLE_TYPE_DECIMAL;}
62
62
enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; }
63
63
Item_result result_type () const { return DECIMAL_RESULT; }
85
85
int compatible_field_size(uint32_t field_metadata);
86
86
uint32_t is_equal(CreateField *new_field);
87
87
virtual const unsigned char *unpack(unsigned char* to, const unsigned char *from,
88
uint32_t param_data, bool low_byte_first);
88
uint32_t param_data, bool low_byte_first);
91
91
#endif /* DRIZZLED_FIELD_DECIMAL_H */