33
33
bool decimal_precision; // Purify cannot handle bit fields & only for decimal type
34
34
bool unsigned_flag; // Purify cannot handle bit fields
36
35
Field_num(unsigned char *ptr_arg,uint32_t len_arg, unsigned char *null_ptr_arg,
37
36
unsigned char null_bit_arg, utype unireg_check_arg,
38
37
const char *field_name_arg,
39
38
uint8_t dec_arg, bool zero_arg, bool unsigned_arg);
41
39
Item_result result_type () const { return REAL_RESULT; }
43
40
friend class CreateField;
45
41
void make_field(SendField *);
47
42
uint32_t decimals() const { return (uint32_t) dec; }
49
43
uint32_t size_of() const { return sizeof(*this); }
51
44
bool eq_def(Field *field);
53
int store_decimal(const type::Decimal *);
55
type::Decimal *val_decimal(type::Decimal *);
45
int store_decimal(const my_decimal *);
46
my_decimal *val_decimal(my_decimal *);
57
47
uint32_t is_equal(CreateField *new_field);
59
48
int check_int(const CHARSET_INFO * const cs, const char *str, int length,
60
49
const char *int_end, int error);
62
50
bool get_int(const CHARSET_INFO * const cs, const char *from, uint32_t len,
63
51
int64_t *rnd, uint64_t unsigned_max,
64
52
int64_t signed_min, int64_t signed_max);