db-model-router 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/mysql/db.js +2 -2
package/package.json
CHANGED
package/src/mysql/db.js
CHANGED
|
@@ -333,7 +333,7 @@ function getChangeParameter(row, uniqueKeys, onDuplicate = true) {
|
|
|
333
333
|
if (queryEnd !== " ON DUPLICATE KEY UPDATE ") {
|
|
334
334
|
queryEnd += ",";
|
|
335
335
|
}
|
|
336
|
-
queryEnd += "??=
|
|
336
|
+
queryEnd += "??=VALUES(??)";
|
|
337
337
|
updateColumn.push(column);
|
|
338
338
|
updateColumn.push(column);
|
|
339
339
|
}
|
|
@@ -341,7 +341,7 @@ function getChangeParameter(row, uniqueKeys, onDuplicate = true) {
|
|
|
341
341
|
}
|
|
342
342
|
queryEnd += ";";
|
|
343
343
|
return [
|
|
344
|
-
`${queryStart} VALUES ?
|
|
344
|
+
`${queryStart} VALUES ? ${queryEnd}`,
|
|
345
345
|
insertColumn,
|
|
346
346
|
updateColumn,
|
|
347
347
|
];
|