From 915b49fb032a864ad773fe4e04b112861f0af9c9 Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Tue, 16 Aug 2011 18:59:02 -0500 Subject: [PATCH 1/2] version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 98014d02692c45f10f098eb9eaeb2d484bebceb2 Mon Sep 17 00:00:00 2001 From: Brian Carlson Date: Tue, 16 Aug 2011 23:58:54 -0500 Subject: [PATCH 2/2] tweak to native Client#query overload --- lib/native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/native.js b/lib/native.js index e51726b8..824c6c05 100644 --- a/lib/native.js +++ b/lib/native.js @@ -107,7 +107,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; }