From e6fe115962623c6b0c1efceadea5b98abe32267a Mon Sep 17 00:00:00 2001 From: brianc Date: Mon, 15 Aug 2011 20:15:43 -0500 Subject: [PATCH] use native in native pg.connect --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index f134aca..728968a 100644 --- a/lib/index.js +++ b/lib/index.js @@ -23,7 +23,7 @@ var makeConnectFunction = function(ClientConstructor) { var pool = pools[poolName] = genericPool.Pool({ name: poolName, create: function(callback) { - var client = new Client(c); + var client = new ClientConstructor(c); client.connect(); var connectError = function(err) { client.removeListener('connect', connectSuccess);