[MDEV-25403] ALTER TABLE wrongly checks for field's default value if AFTER is used Created: 2021-04-13 Updated: 2021-04-15 Resolved: 2021-04-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.3.27, 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.2.38, 10.3.29, 10.4.19, 10.5.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marc | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Issue Links: |
|
||||||||
| Description |
|
See the following test script:
Resulting in As you can see this is totally wrong, there is no such value 0000-00-00 in this table, and the alter statement should succeed. |
| Comments |
| Comment by Alice Sherepa [ 2021-04-13 ] | ||||||||
|
Thanks! I repeated as described on 5.5-10.5 with Myisam table, while no error with InnoDB table on 5.5-10.2,
|