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

Model.update() fails to handle unique keys #3474

Closed
johngiudici opened this issue Apr 6, 2015 · 3 comments
Closed

Model.update() fails to handle unique keys #3474

johngiudici opened this issue Apr 6, 2015 · 3 comments

Comments

@johngiudici
Copy link
Contributor

@johngiudici johngiudici commented Apr 6, 2015

caller.__options isn't defined in the query handler when using Model.update(). Fix incoming...

johngiudici added a commit to johngiudici/sequelize that referenced this issue Apr 6, 2015
johngiudici added a commit to johngiudici/sequelize that referenced this issue Apr 6, 2015
@janmeier janmeier closed this in 560aa48 Apr 8, 2015
janmeier added a commit that referenced this issue Apr 8, 2015
Allow Model.update() to handle unique constraints - Fixes #3474
@amsanket22
Copy link

@amsanket22 amsanket22 commented May 14, 2019

I think this issue persists. I have a unique constraint added at db level, and when I update the record it gives me an error, raw query at db works fine, but from sequelize it gives me duplicate entry error.
Screenshot from 2019-05-14 15-56-33

Attached is the screenshot

@jy95
Copy link

@jy95 jy95 commented Mar 2, 2020

Still present in the latest version :(
@papb Can you reopen this issue ? I got the same bug

@KhizarNaseer
Copy link

@KhizarNaseer KhizarNaseer commented Jun 15, 2021

This issue still exists, can anyone please solve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants