mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge tag '11.1' into 11.2
MariaDB 11.1.3 release
This commit is contained in:
43
sql/field.h
43
sql/field.h
@@ -2881,22 +2881,9 @@ public:
|
||||
Field_float(uchar *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
||||
uchar null_bit_arg,
|
||||
enum utype unireg_check_arg, const LEX_CSTRING *field_name_arg,
|
||||
decimal_digits_t dec_arg,bool zero_arg,bool unsigned_arg)
|
||||
:Field_real(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
||||
unireg_check_arg, field_name_arg,
|
||||
dec_arg, zero_arg, unsigned_arg)
|
||||
{
|
||||
if (dec_arg >= FLOATING_POINT_DECIMALS)
|
||||
dec_arg= NOT_FIXED_DEC;
|
||||
}
|
||||
decimal_digits_t dec_arg,bool zero_arg,bool unsigned_arg);
|
||||
Field_float(uint32 len_arg, bool maybe_null_arg,
|
||||
const LEX_CSTRING *field_name_arg, decimal_digits_t dec_arg)
|
||||
:Field_real((uchar*) 0, len_arg, maybe_null_arg ? (uchar*) "": 0, (uint) 0,
|
||||
NONE, field_name_arg, dec_arg, 0, 0)
|
||||
{
|
||||
if (dec_arg >= FLOATING_POINT_DECIMALS)
|
||||
dec_arg= NOT_FIXED_DEC;
|
||||
}
|
||||
const LEX_CSTRING *field_name_arg, decimal_digits_t dec_arg);
|
||||
const Type_handler *type_handler() const override
|
||||
{ return &type_handler_float; }
|
||||
enum ha_base_keytype key_type() const override { return HA_KEYTYPE_FLOAT; }
|
||||
@@ -2929,32 +2916,12 @@ public:
|
||||
Field_double(uchar *ptr_arg, uint32 len_arg, uchar *null_ptr_arg,
|
||||
uchar null_bit_arg,
|
||||
enum utype unireg_check_arg, const LEX_CSTRING *field_name_arg,
|
||||
decimal_digits_t dec_arg,bool zero_arg,bool unsigned_arg)
|
||||
:Field_real(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
|
||||
unireg_check_arg, field_name_arg,
|
||||
dec_arg, zero_arg, unsigned_arg)
|
||||
{
|
||||
if (dec_arg >= FLOATING_POINT_DECIMALS)
|
||||
dec_arg= NOT_FIXED_DEC;
|
||||
}
|
||||
decimal_digits_t dec_arg,bool zero_arg,bool unsigned_arg);
|
||||
Field_double(uint32 len_arg, bool maybe_null_arg,
|
||||
const LEX_CSTRING *field_name_arg, decimal_digits_t dec_arg)
|
||||
:Field_real((uchar*) 0, len_arg, maybe_null_arg ? (uchar*) "" : 0, (uint) 0,
|
||||
NONE, field_name_arg, dec_arg, 0, 0)
|
||||
{
|
||||
if (dec_arg >= FLOATING_POINT_DECIMALS)
|
||||
dec_arg= NOT_FIXED_DEC;
|
||||
}
|
||||
const LEX_CSTRING *field_name_arg, decimal_digits_t dec_arg);
|
||||
Field_double(uint32 len_arg, bool maybe_null_arg,
|
||||
const LEX_CSTRING *field_name_arg,
|
||||
decimal_digits_t dec_arg, bool not_fixed_arg)
|
||||
:Field_real((uchar*) 0, len_arg, maybe_null_arg ? (uchar*) "" : 0, (uint) 0,
|
||||
NONE, field_name_arg, dec_arg, 0, 0)
|
||||
{
|
||||
not_fixed= not_fixed_arg;
|
||||
if (dec_arg >= FLOATING_POINT_DECIMALS)
|
||||
dec_arg= NOT_FIXED_DEC;
|
||||
}
|
||||
decimal_digits_t dec_arg, bool not_fixed_arg);
|
||||
void init_for_tmp_table(Field *org_field, TABLE *new_table) override
|
||||
{
|
||||
Field::init_for_tmp_table(org_field, new_table);
|
||||
|
Reference in New Issue
Block a user