[MDEV-33127] EXCHANGE PARTITION bypasses check constraint on column/table Created: 2023-12-27 Updated: 2023-12-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Partitioning |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2, 11.3 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2, 11.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
So, even although t1 has a constraint "a < 1000", the greater value still ends up in the table without any visible sign of corruption. Reproducible on all existing versions of MariaDB and on MySQL (at least 8.2.0). Same is true for CONVERT TABLE .. TO PARTITION on versions where it is applicable (MariaDB 10.7+):
|
| Comments |
| Comment by Elena Stepanova [ 2023-12-27 ] | ||||||||||||||||||||||||||
|
Same is true for without overlaps constraint.
|