[MDEV-5911] CAST(SUM(double_field) AS SIGNED) returns a wrong result Created: 2014-03-20 Updated: 2022-11-01 Resolved: 2022-11-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 5.5.36, 10.0.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This SQL script:
returns a wrong result for CAST(SUM(a) AS SIGNED):
The expected result is +9223372036854775807, |
| Comments |
| Comment by Sergei Golubchik [ 2022-11-01 ] |
|
fixed somewhere before 10.3.37 |