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
The Ecto.Changeset.unique_constraint is supposed to catch the Database error thrown when a unique key is violated. However this adapter does not seem to work. This is (part of) the logged error: ** (exit) an exception was raised:, ** (Tds.Error) Line 1 (Error 2627): Violation of UNIQUEKEY``. This is not caught by ecto properly and does not work. Not sure if the issue is this adapter or ecto but I figured I'd start here.
I will check but I think this should be adapter issue probably. As I remeber i made macro that wraps around errors so error code and messages are captured correctly if en-US language is used.
Activity
mjaric commentedon Sep 15, 2025
I will check but I think this should be adapter issue probably. As I remeber i made macro that wraps around errors so error code and messages are captured correctly if en-US language is used.
Fix unique_constraint support for en-US error messages
Fix unique_constraint support (en-US errors) (#188)