@@ -251,7 +251,7 @@ class Query extends AbstractQuery {
...
@@ -251,7 +251,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 '([^']*)'. 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){
letfields={};
letfields={};
...
@@ -261,12 +261,12 @@ class Query extends AbstractQuery {
...
@@ -261,12 +261,12 @@ class Query extends AbstractQuery {