Permalink
Browse files

null handling adjustment in sqlite store

  • Loading branch information...
1 parent 0662f37 commit 3a5c3bc39f10e54d3b1f4a14875ff7e1b7d33278 @rburns rburns committed Jan 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/stores/sqlite.js
@@ -21,7 +21,7 @@ module.exports = function (options, callback) {
keys = Object.keys(query),
placeholders = keys.map(function (name) {
var key = (prefix || '$') + name,
- op = value == null ? ' is ' : ' = ',
+ op = query[name] === null ? ' is ' : ' = ',
k,
value = query[name];
@@ -173,7 +173,7 @@ module.exports = function (options, callback) {
client.execute(
'UPDATE ' + table + ' SET ' + update.placeholders.join(', ') +
' WHERE ' + where.placeholders.join(' AND '),
- update.values,
+ values,
function (error, data) {
if (callback) {
callback(error, sqliteStore);

0 comments on commit 3a5c3bc

Please sign in to comment.