Bug #105983 `SELECT GREATEST(time '20:00:00', 120000) + 0.00` should return 20
| Submitted: | 27 Dec 2021 9:42 | Modified: | 11 Dec 2025 22:56 |
|---|---|---|---|
| Reporter: | Huaiyu Xu | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: DML | Severity: | S2 (Serious) |
| Version: | 8.0.26, 8.0.27, 5.7.36 | OS: | MacOS |
| Assigned to: | CPU Architecture: | Any |
[27 Dec 2021 9:42]
Huaiyu Xu
[27 Dec 2021 10:00]
MySQL Verification Team
Hello Huaiyu Xu, Thank you for the report and test case. regards, Umesh
[14 Mar 2023 14:02]
dick Dick
I'm not sure it's a bug or not,but the return type of `GREATEST(time '20:00:00', 120000)` actually is time '20:00:00' and "select time "20:00:00" + 0.00;" equal to "SELECT GREATEST(time '20:00:00', 120000) + 0.00;" .
[11 Dec 2025 22:56]
Roy Lyseng
Posted by developer: This is the expected result, so not a bug.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 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.