Bug #114549 | CAST from DOUBLE to INTEGER sometimes returns 1, sometimes 2 | ||
---|---|---|---|
Submitted: | 4 Apr 2024 10:15 | Modified: | 13 Jun 2024 21:51 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.3, 8.0.36 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[4 Apr 2024 10:15]
Guilhem Bichot
[4 Apr 2024 10:27]
MySQL Verification Team
Hello Guilhem, Thank you for the report and test case. regards, Umesh
[13 Jun 2024 21:51]
Jon Stephens
Documented fix as follows in the MySQL 9.0.0 changelog: In some cases, casting a double to an integer value used rounding, and in others, with truncation, which led to inconsistent results. Now rounding up is used in all such cases. Closed.