sql-server upsert on composite unique index failing maybe because of UID primary key in the model #8634
Labels
dialect: mssql
For issues and PRs. Things that involve MSSQL (and do not involve all dialects).
type: bug
What are you doing?
What do you expect to happen?
Upsert should update existing value not try to insert new value
What is actually happening?
SequelizeUniqueConstraintError: Validation error
at Query.formatError (c:\work\project1\node_modules\sequelize\lib\dialects\mssql\query.js:304:14)
The sql below is matching on the PK not the constraint. I believe this is because of the default UUID value in the model
Output, either JSON or SQL
Dialect: mssql
Dialect version: ?
Database version: ?
Sequelize version: 4.22.6
Tested with master branch: ?
The text was updated successfully, but these errors were encountered: