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

Add reference constraint support for sql server #8

Closed
kaiserjpg opened this issue Oct 5, 2019 · 4 comments
Closed

Add reference constraint support for sql server #8

kaiserjpg opened this issue Oct 5, 2019 · 4 comments

Comments

@kaiserjpg
Copy link

It would be nice to add support for error 547 in sql server which is a reference constraint error. I created a pull request for you to review the new feature and if approved update the nuget package.

@Giorgi
Copy link
Owner

Giorgi commented Oct 8, 2019

Thanks for the PR. Do you know if there is a similar error in other database engines so that we can support it in all packages ?

@kaiserjpg
Copy link
Author

kaiserjpg commented Oct 10, 2019

I saw the latest list of errors in mysql here
Not sure how accurate it is, since I saw that you use 1062 for DuplicateEntryForKey (Unique constraint) but here the code is 1169. This might be related to the DB version.

For PostgreSQL you can find the latest list here . Keep in mind that PostgreSQL uses two codes for this validation:
image

@Giorgi
Copy link
Owner

Giorgi commented Oct 10, 2019

Merged.

@Giorgi Giorgi closed this as completed Oct 10, 2019
@Giorgi
Copy link
Owner

Giorgi commented Jan 22, 2020

@kaiserjpg I added support for ReferenceConstraintException for other databases too

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

No branches or pull requests

2 participants