Update deps
This commit is contained in:
parent
6988e1bdea
commit
2422c4c6f0
|
@ -324,6 +324,9 @@ MySQL.prototype.toDatabase = function (prop, val, forCreate) {
|
||||||
return this.client.escape(val);
|
return this.client.escape(val);
|
||||||
}
|
}
|
||||||
if (prop.type === Number) {
|
if (prop.type === Number) {
|
||||||
|
if (isNaN(val)) {
|
||||||
|
val = null;
|
||||||
|
}
|
||||||
return this.client.escape(val);
|
return this.client.escape(val);
|
||||||
}
|
}
|
||||||
if (prop.type === Date) {
|
if (prop.type === Date) {
|
||||||
|
|
15
package.json
15
package.json
|
@ -8,15 +8,16 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"loopback-connector": "1.x",
|
"loopback-connector": "1.x",
|
||||||
"mysql": "~2.5.0",
|
"mysql": "^2.5.4",
|
||||||
"async": "~0.9.0",
|
"async": "^0.9.0",
|
||||||
"debug": "~2.0.0"
|
"debug": "^2.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"loopback-datasource-juggler": "^2.15.0",
|
"bluebird": "~2.9.10",
|
||||||
"should": "~1.3.0",
|
"loopback-datasource-juggler": "^2.17.0",
|
||||||
"mocha": "~1.20.1",
|
"mocha": "^2.1.0",
|
||||||
"rc": "~0.4.0"
|
"rc": "^0.6.0",
|
||||||
|
"should": "^5.0.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -197,7 +197,7 @@ describe('mysql', function () {
|
||||||
posts.should.have.lengthOf(1);
|
posts.should.have.lengthOf(1);
|
||||||
post = posts[0];
|
post = posts[0];
|
||||||
post.should.have.property('title', 'b');
|
post.should.have.property('title', 'b');
|
||||||
post.should.not.have.property('content');
|
post.should.have.property('content', undefined);
|
||||||
should.not.exist(post.id);
|
should.not.exist(post.id);
|
||||||
|
|
||||||
done();
|
done();
|
||||||
|
|
Loading…
Reference in New Issue