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.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.050 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.