Fix throw in type parsers when in prepared statement (#1242)
This commit is contained in:
parent
ff5ceb4304
commit
ce8f215c88
@ -169,7 +169,7 @@ Client.prototype.connect = function(callback) {
|
|||||||
self.readyForQuery = true;
|
self.readyForQuery = true;
|
||||||
self._pulseQueryQueue();
|
self._pulseQueryQueue();
|
||||||
if(activeQuery) {
|
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) {
|
if(this._canceledDueToError) {
|
||||||
return this.handleError(this._canceledDueToError);
|
return this.handleError(this._canceledDueToError, con);
|
||||||
}
|
}
|
||||||
if(this.callback) {
|
if(this.callback) {
|
||||||
this.callback(null, this._result);
|
this.callback(null, this._result);
|
||||||
|
Loading…
Reference in New Issue
Block a user