1
0
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:
hf@deer.(none)
2005-03-07 16:08:06 +04:00
parent 9ca989aff2
commit b8e5df4b7d
3 changed files with 24 additions and 0 deletions

View File

@ -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++;