Skip to content

Commit 4458e69

Browse files
committed
call EventEmmiter constructor on native Connection
this allows to preserve an active domain on switches in libpq
1 parent fddf054 commit 4458e69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/native/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Connection.prototype.sendCopyFail = function(msg) {
155155
var clientBuilder = function(config) {
156156
config = config || {};
157157
var connection = new Connection();
158+
EventEmitter.call(connection);
158159
connection._queryQueue = [];
159160
connection._namedQueries = {};
160161
connection._activeQuery = null;

0 commit comments

Comments
 (0)