Comparing version 0.4.4 to 0.4.5
@@ -0,1 +1,6 @@ | ||
0.4.5 / 2019-12-14 | ||
================== | ||
* Fix: prevent primary key from being overridden with incorrect `LAST_INSERT_ID()` | ||
0.4.4 / 2019-07-15 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -313,3 +313,4 @@ 'use strict' | ||
const result = await Model.query(spell) | ||
this[primaryKey] = result.insertId | ||
// LAST_INSERT_ID() breaks on TDDL | ||
if (this[primaryKey] == null) this[primaryKey] = result.insertId | ||
this.syncRaw() | ||
@@ -316,0 +317,0 @@ return result.affectedRows |
{ | ||
"name": "leoric", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "JavaScript Object-relational mapping alchemy", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
"debug": "^3.1.0", | ||
"deep-equal": "^1.0.1", | ||
"deep-equal": "^1.1.1", | ||
"pluralize": "^7.0.0", | ||
@@ -42,11 +42,13 @@ "sqlstring": "^2.3.0" | ||
"@cara/minami": "^1.2.3", | ||
"coveralls": "^3.0.2", | ||
"babel-eslint": "^10.0.3", | ||
"coveralls": "^3.0.9", | ||
"eslint": "^6.7.2", | ||
"expect.js": "^0.3.1", | ||
"jsdoc": "^3.5.5", | ||
"jsdoc": "^3.6.3", | ||
"mocha": "^5.2.0", | ||
"mysql": "^2.15.0", | ||
"mysql2": "^1.5.1", | ||
"mysql": "^2.17.1", | ||
"mysql2": "^1.7.0", | ||
"nyc": "^13.1.0", | ||
"pg": "^7.6.0" | ||
"pg": "^7.14.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
120572
3378
11
Updateddeep-equal@^1.1.1