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

It doesn't handle Unique Constrain Violation #7

Open
pintopedro opened this issue Aug 6, 2022 · 0 comments
Open

It doesn't handle Unique Constrain Violation #7

pintopedro opened this issue Aug 6, 2022 · 0 comments

Comments

@pintopedro
Copy link

I used the copy_from method but it doesn't allow to update existing data with Unique Constrains.
It gives the error: UniqueViolation: duplicate key value violates unique constraint.
Is there any way to force an update when inserting the data and avoid this error?

Thank you.

@pintopedro pintopedro changed the title It not handle Unique Constrain Violation It doesn't handle Unique Constrain Violation Aug 6, 2022
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

1 participant