[MDEV-17417] TIME(99991231235959) returns 838:59:59 instead of 23:59:59 Created: 2018-10-10  Updated: 2018-10-16  Resolved: 2018-10-14

Status: Closed
Project: MariaDB Server
Component/s: Temporal Types
Affects Version/s: 10.0, 10.1, 10.2, 10.3, 10.4
Fix Version/s: 10.4.0

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-16991 Rounding vs truncation for TIME, DATE... Closed

 Description   

SELECT TIME(99991231235957), TIME(99991231235958), TIME(99991231235959);

+----------------------+----------------------+----------------------+
| TIME(99991231235957) | TIME(99991231235958) | TIME(99991231235959) |
+----------------------+----------------------+----------------------+
| 23:59:57             | 23:59:58             | 838:59:59            |
+----------------------+----------------------+----------------------+

The expected result for the last column is 23:59:58.


Generated at Thu Feb 08 08:36:18 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.