mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
MDEV-8921 Wrong result for CAST(AVG(double_column) AS SIGNED)
This commit is contained in:
parent
7091b7852d
commit
16ad1fc540
6 changed files with 44 additions and 15 deletions
|
|
@ -1430,7 +1430,7 @@ longlong Item_sum_sum::val_int()
|
|||
&result);
|
||||
return result;
|
||||
}
|
||||
return (longlong) rint(val_real());
|
||||
return val_int_from_real();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue