[MDEV-11307] sum() and avg() return incorrect result for float when calculation overflows float range Created: 2016-11-18 Updated: 2023-04-14 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Ashwin Gopalakrishnan | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | upstream | ||
| Environment: |
CentOS x86_64 |
||
| Issue Links: |
|
||||||||
| Description |
|
I believe – Create table
– Compare results of query (incorrect result)
Vs.
|
| Comments |
| Comment by Elena Stepanova [ 2016-11-18 ] |
|
Reproducible on all of 5.5-10.2, and also MySQL 5.6, 5.7. bar, please also note the bad warning message (converting '' to DECIMAL). This part at least is fixed in MySQL, now they put the number there. |