mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Fix for bug #8464 (AVG returns incorrect result)
Actually problem was not in AVG function, but in SUM before the AVG in the query.
This commit is contained in:
@ -1199,7 +1199,10 @@ int decimal2bin(decimal *from, char *to, int precision, int frac)
|
||||
else if (fsize0 > fsize1 && frac1x)
|
||||
{
|
||||
if (frac0 == frac1)
|
||||
{
|
||||
frac1x=frac0x;
|
||||
fsize0= fsize1;
|
||||
}
|
||||
else
|
||||
{
|
||||
frac1++;
|
||||
|
Reference in New Issue
Block a user