mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-25317 Assertion scale <= precision' failed in decimal_bin_size And Assertion
scale >= 0 && precision > 0 && scale <= precision' failed in decimal_bin_size_inline/decimal_bin_size.
Precision should be kept below DECIMAL_MAX_SCALE for computations. It can be bigger in Item_decimal. I'd fix this too but it changes the existing behaviour so problemmatic to ix.
This commit is contained in:
@@ -258,7 +258,6 @@ Type_handler_decimal_result::make_num_distinct_aggregator_field(
|
||||
const Item *item)
|
||||
const
|
||||
{
|
||||
DBUG_ASSERT(item->decimals <= DECIMAL_MAX_SCALE);
|
||||
return new (mem_root)
|
||||
Field_new_decimal(NULL, item->max_length,
|
||||
(uchar *) (item->maybe_null ? "" : 0),
|
||||
|
Reference in New Issue
Block a user