[MDEV-32547] ALTER IGNORE TABLE only sometimes converts NULL to DEFAULT value Created: 2023-10-23 Updated: 2023-10-23 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - InnoDB |
| Affects Version/s: | 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Michael Widenius |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | CONSTRAINT | ||
| Issue Links: |
|
||||||||
| Description |
|
While reviewing MDEV-32523, I noticed the following anomaly:
When the test is run with
the SELECT will report the value of the column c2 as 0, not the previous or current DEFAULT value. When the test is run with
it will (before a fix of MDEV-32523) report c2=1, corresponding to the old DEFAULT value of the column. What is the expected outcome here? Another anomaly:
This will end up with an empty table when using ALGORITHM=COPY, so the IGNORE is not ignoring CHECK constraints. If I use ALGORITHM=INPLACE, the CHECK constraint will wrongly be ignored. |