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

Update duplicates option currently updates all columns which may not be desirable #50

Open
aqeelvn opened this issue Jan 27, 2020 · 0 comments

Comments

@aqeelvn
Copy link

aqeelvn commented Jan 27, 2020

The current implementation of update_duplicates is such that it updates all columns if there is a conflict during the insert phase. This is not always desirable. A classic case is the created_at.

If an insert fails, and we want the update to happen instead we would typically want created_at to keep its existing value. An option to control this behaviour would be great.

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 a pull request may close this issue.

1 participant