Comparing version 0.1.2 to 0.1.3
@@ -499,3 +499,3 @@ var assign = require('lodash.assign'); | ||
if (type && (options.replace || self.schema.autoincrement !== field)) { | ||
if (type && typeof self.data[field] !== 'undefined' && (options.replace || self.schema.autoincrement !== field)) { | ||
write[field] = type.prepare(self.data[field]); | ||
@@ -591,3 +591,3 @@ } | ||
if (type && (options.replace || self.schema.autoincrement !== field)) { | ||
if (type && typeof self.data[field] !== 'undefined' && (options.replace || self.schema.autoincrement !== field)) { | ||
write[field] = type.prepare(self.data[field]); | ||
@@ -594,0 +594,0 @@ } |
quell.js | ||
Copyright (c) 2013-2014, Jarvis Badgley - chiper[at]chipersoft[dot]com | ||
Copyright (c) 2013-2016, Jarvis Badgley - chiper[at]chipersoft[dot]com | ||
@@ -4,0 +4,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
{ | ||
"name": "quell", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A no-frills active record implementation for node-mysql.", | ||
@@ -5,0 +5,0 @@ "main": "quell.js", |
@@ -30,3 +30,4 @@ var assign = require('lodash.assign'); | ||
id: quell.INT(), | ||
name: quell.VARCHAR() | ||
name: quell.VARCHAR(), | ||
email: quell.VARCHAR() | ||
}, | ||
@@ -38,3 +39,3 @@ primaries: ['id'], | ||
var model = new Model({name: 'john doe'}); | ||
var model = new Model({name: 'john doe', email: undefined }); | ||
@@ -41,0 +42,0 @@ quell._buildInsertQuery = function (tablename, write, replace) { |
@@ -30,3 +30,4 @@ var assign = require('lodash.assign'); | ||
id: quell.INT(), | ||
name: quell.VARCHAR() | ||
name: quell.VARCHAR(), | ||
email: quell.VARCHAR() | ||
}, | ||
@@ -38,3 +39,3 @@ primaries: ['id'], | ||
var model = new Model({id: 5, name: 'john doe'}); | ||
var model = new Model({id: 5, name: 'john doe', email: undefined}); | ||
@@ -41,0 +42,0 @@ quell._buildUpdateQuery = function (tablename, write, lookup) { |
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
285928
31
4469