mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 10:45:30 +02:00
MDEV-5781 Item_sum_std::val_real(): Assertion `nr >= 0.0' fails on query with STDDEV_POP, ROUND and variable
This commit is contained in:
parent
92bd6801b9
commit
ce3c457e6d
3 changed files with 36 additions and 0 deletions
|
|
@ -2666,6 +2666,9 @@ double my_double_round(double value, longlong dec, bool dec_unsigned,
|
|||
volatile double value_div_tmp= value / tmp;
|
||||
volatile double value_mul_tmp= value * tmp;
|
||||
|
||||
if (!dec_negative && my_isinf(tmp)) // "dec" is too large positive number
|
||||
return value;
|
||||
|
||||
if (dec_negative && my_isinf(tmp))
|
||||
tmp2= 0.0;
|
||||
else if (!dec_negative && my_isinf(value_mul_tmp))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue