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

Foreign key constraint error to be handled for merge statements too. - MSSQL #7011

Closed
rdhanasekar opened this issue Dec 20, 2016 · 1 comment

Comments

@rdhanasekar
Copy link

Please include the merge statement in the foreign key constraint error handler in MSSQL query.js

err.message.match(/The MERGE statement conflicted with the FOREIGN KEY constraint "(.)". The conflict occurred in database "(.)", table "(.)", column '(.)'./);

__Dialect: mssql

@janmeier
Copy link
Member

janmeier commented Dec 20, 2016 via email

harshithkashyap added a commit to harshithkashyap/sequelize that referenced this issue Dec 22, 2016
sushantdhiman pushed a commit that referenced this issue Dec 23, 2016
…traintError (#7024)

* [MSSQL] MERGE statement foreignKey violation is formatted as ForeignKeyConstraintError, Closes #7011

* Added changelog entry

* Alter changelog entry

* [ci skip] link to issue
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