From 4458e6928507afe49a01a9ddd6cafe390c1221ce Mon Sep 17 00:00:00 2001 From: Andrey Popp <8mayday@gmail.com> Date: Mon, 20 May 2013 18:31:55 +0400 Subject: [PATCH] call EventEmmiter constructor on native Connection this allows to preserve an active domain on switches in libpq --- lib/native/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/native/index.js b/lib/native/index.js index 69f38850..d6dd4b22 100644 --- a/lib/native/index.js +++ b/lib/native/index.js @@ -155,6 +155,7 @@ Connection.prototype.sendCopyFail = function(msg) { var clientBuilder = function(config) { config = config || {}; var connection = new Connection(); + EventEmitter.call(connection); connection._queryQueue = []; connection._namedQueries = {}; connection._activeQuery = null;