Skip to content
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

Ensure constraint existence as part of validation for the drop constraint operation #252

Merged
merged 3 commits into from
Jan 26, 2024

Conversation

andrew-farries
Copy link
Collaborator

Add extra validation to the drop constraint operation to ensure that the constraint to be dropped actually exists on the table. Validation fails if the constraint does not exist.

This is possible now that all supported constraints (CHECK, UNIQUE and FOREIGN KEY) are part of the internal schema representation.

Part of #105

Test existence of a constraint on a table by name.
Ensure that validation fails if the constraint does not exist on the
table.
@andrew-farries andrew-farries merged commit 14e3d1b into main Jan 26, 2024
26 checks passed
@andrew-farries andrew-farries deleted the validate-constraint-existence-before-drop branch January 26, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants