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
Support other unique constraint error format (#115)
Unique constraints sometimes fail with the following error format:
UNIQUE constraint failed: index '<index_name>'
I believe this happens when the index name doesn't match
the names of the columns involved.
Example of an index for which this happens:
CREATE UNIQUE INDEX test_user_id_number_year_index
ON invoices (user_id, number, strftime('%Y', created_at));
0 commit comments