We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff5ceb4 commit ce8f215Copy full SHA for ce8f215
lib/client.js
@@ -169,7 +169,7 @@ Client.prototype.connect = function(callback) {
169
self.readyForQuery = true;
170
self._pulseQueryQueue();
171
if(activeQuery) {
172
- activeQuery.handleReadyForQuery();
+ activeQuery.handleReadyForQuery(con);
173
}
174
});
175
lib/query.js
@@ -116,9 +116,9 @@ Query.prototype.handleEmptyQuery = function(con) {
116
117
};
118
119
-Query.prototype.handleReadyForQuery = function() {
+Query.prototype.handleReadyForQuery = function(con) {
120
if(this._canceledDueToError) {
121
- return this.handleError(this._canceledDueToError);
+ return this.handleError(this._canceledDueToError, con);
122
123
if(this.callback) {
124
this.callback(null, this._result);
0 commit comments