update postgresql error message parsing on foreign key
Error code: 23503 On "recent" postgresql (> 8?), error message is: insert or update on table "$table" violates foreign key constraint "$index" I updated the error match to get the right table and index in both cases. Before this patch, sequelize failed badly with: `TypeError: Cannot read property '1' of null`
Showing
with
8 additions
and
4 deletions
-
Please register or sign in to post a comment