use native in native pg.connect

This commit is contained in:
brianc 2011-08-15 20:15:43 -05:00
parent a8d8f84e67
commit e6fe115962

View File

@ -23,7 +23,7 @@ var makeConnectFunction = function(ClientConstructor) {
var pool = pools[poolName] = genericPool.Pool({ var pool = pools[poolName] = genericPool.Pool({
name: poolName, name: poolName,
create: function(callback) { create: function(callback) {
var client = new Client(c); var client = new ClientConstructor(c);
client.connect(); client.connect();
var connectError = function(err) { var connectError = function(err) {
client.removeListener('connect', connectSuccess); client.removeListener('connect', connectSuccess);