You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent error codes returned on duplicate key error #7637
breaking changeFor issues and PRs. Changes that break compatibility and require a major version increment.type: bugDEPRECATED: replace with the "bug" issue type
Writing test cases for a module that is using sequelize. I have discovered the return value from a duplicate key error is different between postgres and mssql dialects. Error is of type SequelizeUniqueConstraintError for postgres however error returned by mssql is of type SequelizeDatabaseError.
What do you expect to happen?
Consistent error types between dialects
Dialect: postgres / mssql Database Postgres 9.6 / SQL Server 2008 R2 & SQL Server 2016 Sequelize 3.30.4
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂
breaking changeFor issues and PRs. Changes that break compatibility and require a major version increment.type: bugDEPRECATED: replace with the "bug" issue type
Activity
stale commentedon Jul 16, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂