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
Scenario:
A table which has fields with UNIQUE constraint.
Try to insert a new entry with the same value for the UNIQUE field as an already existing entry.
Expected result:
Returned error being gorm.ErrDuplicatedKey
Actual result:
Returned error is from sqlite3: constraint failed: UNIQUE constraint failed: table.field(2067) which is clumsy to react to in code