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
Case sensitive MS SQL database operations fail because of uppercase system table references #9336
It threw an error saying that SYS.DEFAULT_CONSTRAINTS cannot be found.
I double checked the DB to see and sys.default_constraints is there and can be queried as I wish.
What I found strange is that if I remove the collation setting, the migrations work just fine.
I eventually debugged sequelize and found that query-generator.js in the mssql dialect uses a few SYS views with uppercase letters. These will always fail if the database collation is set to case sensitive.
I prepared a pull request for it that fixes the error. I'll create it after this issue is created.
Dialect: mssql Dialect version: Don't know where to look for that Database version: MS SQL Server 2017 for Linux Sequelize version: 4.31 Tested with latest release: Yes, 4.37
Activity
szabolcsmaj commentedon Apr 21, 2018
Created PR: #9337