Postgres single connections will no longer leak
Some users were experiencing problems with Postgres connections leaking when they didn't enable pooling. This commit should fix the problem. - In prototype.disconnect() we now properly call this.client.end with this.client.end.bind(this.client) (as shown in the node-postgres wiki). - We no longer check for readyForQuery on this.client as that value may not always be populated by node-postgres (possibly a bug on node-postgres). This should close https://github.com/sequelize/sequelize/issues/859
Showing
with
3 additions
and
4 deletions
-
Please register or sign in to post a comment