[MDEV-27000] TIMESTAMP '<date>' returns ER_WRONG_VALUE (Incorrect DATETIME value) Created: 2021-11-08 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
On some reason, the following returns an error:
while this, for example, works:
This also works
and naturally a date can be inserted into a timestamp/datetime column. bar said the error upon timestamp literal may be a bug, so I'm filing it so that it's at least tracked. I cannot find a definitive proof in documentation whether it should work or not. MySQL manual, while quite verbose, doesn't say explicitly whether it should work. It has, however, this note:
So, it appears that at least timestamp '20211212' should work (but it doesn't work in MySQL either). MariaDB documentation is very confusing, it doesn't help at all. One non-obvious effect is that in 10.7, --as-of option added to mysqldump in the scope of
|