Fix throw in type parsers when in prepared statement (#1242)

remotes/origin/master
Linus Unnebäck 8 years ago committed by Brian C
parent ff5ceb4304
commit ce8f215c88

@ -169,7 +169,7 @@ Client.prototype.connect = function(callback) {
self.readyForQuery = true;
self._pulseQueryQueue();
if(activeQuery) {
activeQuery.handleReadyForQuery();
activeQuery.handleReadyForQuery(con);
}
});

@ -116,9 +116,9 @@ Query.prototype.handleEmptyQuery = function(con) {
}
};
Query.prototype.handleReadyForQuery = function() {
Query.prototype.handleReadyForQuery = function(con) {
if(this._canceledDueToError) {
return this.handleError(this._canceledDueToError);
return this.handleError(this._canceledDueToError, con);
}
if(this.callback) {
this.callback(null, this._result);

Loading…
Cancel
Save