[MDEV-23311] CEILING() and FLOOR() convert temporal input to numbers, unlike ROUND() and TRUNCATE() Created: 2020-07-28 Updated: 2023-07-19 Resolved: 2020-07-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, Temporal Types |
| Affects Version/s: | 10.4, 10.5 |
| Fix Version/s: | 10.4.14, 10.5.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Under terms of
But the functions CEILING() and FLOOR() still convert temporal data types to numbers:
CEILING() and FLOOR() should be fixed to return TIME (for TIME input) and DATETIME (for DATETIME and TIMESTAMP input), like ROUND() and TRUNCATE() do. |