Added stricter value checking on number.
This commit is contained in:
parent
e4527856ad
commit
b5eaa99d5a
|
@ -165,7 +165,7 @@ PG.prototype.toDatabase = function (prop, val) {
|
|||
}
|
||||
}
|
||||
if (prop.type.name === 'Number') {
|
||||
if (!val) {
|
||||
if (!val && val!=0) {
|
||||
if( prop.autoIncrement ) {
|
||||
return 'DEFAULT';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue