diff --git a/lib/native.js b/lib/native.js index cab0d57c..9dac41c1 100644 --- a/lib/native.js +++ b/lib/native.js @@ -113,7 +113,7 @@ var NativeQuery = function(text, values, callback) { this.name = text.name; if(typeof values === 'function') { this.callback = values; - } else if(typeof values !== 'undefined') { + } else if(values) { this.values = values; this.callback = callback; } diff --git a/package.json b/package.json index f4341282..4f957c76 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "name": "pg", - "version": "0.5.4", + "version": "0.5.5", "description": "PostgreSQL client - pure javascript & libpq with the same API", "keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"], "homepage": "http://github.com/brianc/node-postgres",