diff --git a/lib/index.js b/lib/index.js index c0de8199..08155c58 100644 --- a/lib/index.js +++ b/lib/index.js @@ -50,7 +50,7 @@ PG.prototype.connect = function(config, callback) { var client = new self.Client(c); client.connect(function(err) { if(err) { return callback(err); } - + //handle connected client background errors by emitting event //via the pg object and then removing errored client from the pool client.on('error', function(e) { @@ -89,7 +89,7 @@ PG.prototype.cancel = function(config, client, query) { module.exports = new PG(Client); -//lazy require native module...the native module may not have installed +//lazy require native module...the native module may not have installed module.exports.__defineGetter__("native", function() { delete module.exports.native; return (module.exports.native = new PG(require(__dirname + '/native')));