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
Notice the unique property assigned to column name. I have a record in which the name is #test. However, when I attempt to create a new record with name as #Test, sequelize throws a duplicate entry error. Not sure if others are facing the same issue.
Expected behavior
It should accept #test and #Test both, as both are unique given that unique property implies case-sensitivity.
Steps to reproduce
Explained in the actual behaviour section.
The text was updated successfully, but these errors were encountered:
I tried a simple User Model which username is unique. And I add two records {username:'#test'} and {username:'#Test'}. It works fine. Then I add {username:'#test'} again. It throw an error. It is case-sensitivity.Maybe your problem is not related to name .
How about comment out this , just use the default behavior in sequelize-typescript?
Issue
Versions
Issue type
Actual behavior
I have a model defined as follows:-
Notice the
unique
property assigned to columnname
. I have a record in which the name is#test
. However, when I attempt to create a new record with name as#Test
, sequelize throws a duplicate entry error. Not sure if others are facing the same issue.Expected behavior
It should accept
#test
and#Test
both, as both are unique given thatunique
property implies case-sensitivity.Steps to reproduce
Explained in the actual behaviour section.
The text was updated successfully, but these errors were encountered: