[MDEV-8373] Zero date can be inserted in strict no-zero mode through CREATE TABLE AS SELECT timestamp_field Created: 2015-06-25 Updated: 2015-06-26 Resolved: 2015-06-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The last statement should fail on error, because zero date is not allowed by sql_mode. Note, if I change data time from TIMESTAMP to DATE or DATETIME, it correctly returns the error:
|