mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
call EventEmmiter constructor on native Connection
this allows to preserve an active domain on switches in libpq
This commit is contained in:
parent
fddf0546d0
commit
4458e69285
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user