@@ -262,6 +262,7 @@ class Query extends AbstractQuery {
...
@@ -262,6 +262,7 @@ class Query extends AbstractQuery {
formatError(err){
formatError(err){
letmatch;
letmatch;
match=err.message.match(/Violation of (?:UNIQUE|PRIMARY) KEY constraint '((.|\s)*)'. Cannot insert duplicate key in object '.*'.(:? The duplicate key value is \((.*)\).)?/);
match=err.message.match(/Violation of (?:UNIQUE|PRIMARY) KEY constraint '((.|\s)*)'. Cannot insert duplicate key in object '.*'.(:? The duplicate key value is \((.*)\).)?/);
match=match||err.message.match(/Cannot insert duplicate key row in object .* with unique index '(.*)'/);
match=match||err.message.match(/Cannot insert duplicate key row in object .* with unique index '(.*)'/);
if(match&&match.length>1){
if(match&&match.length>1){
...
@@ -310,9 +311,18 @@ class Query extends AbstractQuery {
...
@@ -310,9 +311,18 @@ class Query extends AbstractQuery {
}
}
match=err.message.match(/Could not drop constraint. See previous errors./);
match=err.message.match(/Could not drop constraint. See previous errors./);