不要怂,就是干,撸起袖子干!

Commit 35f2fbe9 by Jan Aagaard Meier

Merge pull request #2324 from PymZoR/regex-patch

Update query.js
2 parents c55127b2 4903041f
Showing with 1 additions and 1 deletions
......@@ -72,7 +72,7 @@ module.exports = (function() {
});
case 1452:
match = err.message.match(/FOREIGN KEY \(`(.*)`\) REFERENCES `(.*)` \(`(.*)`\)\)$/);
match = err.message.match(/FOREIGN KEY \(`(.*)`\) REFERENCES `(.*)` \(`(.*)`\)(.*)\)$/);
return new sequelizeErrors.ForeignKeyConstraintError({
fields: null,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!