New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EXCHANGE PARTITION does not follow CHECK Constraints #45922
Comments
/assign |
Can we check the Constraints by sql like this:
|
@jiyfhust Yes, that should work, but we also need to add the constraints from the non-partitioned table to the partition, and from the partitioned table to the non-partitioned table before the 'write only' state (see #45877 where I added that state...) Since if we don't add the contraints before validation, someone may still sneak in a non checked value. |
CHECK CONSTRAINT was introduced in 7.2, so this does not affect any LTS version yet. |
…teOnly state(Part2) (pingcap#46030) ref pingcap#45922
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
That the alter would keep the CHECK Constraint enforced
3. What did you see instead (Required)
The CHECK constraint is not enforced.
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: