[MDEV-5467] TO_DAYS(DATE(TIME('32 00:00:00'))) returns a wrong result Created: 2013-12-18 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.3.12, 10.1, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The expected result for the third column is 1, without warnings. Or the other way around, date(time('32 00:00:00')) should return NULL. |
| Comments |
| Comment by Ian Gilfillan [ 2018-11-19 ] | ||||||
|
This seems to have been fixed since MariaDB 10.0.9 (with 32 days ahead being the expected result, rather than 1)
| ||||||
| Comment by Elena Stepanova [ 2020-06-28 ] | ||||||
|
10.1-10.5 return results similar to what Ian described above, but that's not what the description says to be the expected result. |