(err, connection)
| 120 | } |
| 121 | |
| 122 | handleError(err, connection) { |
| 123 | // need to sync after error during a prepared statement |
| 124 | if (this._canceledDueToError) { |
| 125 | err = this._canceledDueToError |
| 126 | this._canceledDueToError = false |
| 127 | } |
| 128 | // if callback supplied do not emit error event as uncaught error |
| 129 | // events will bubble up to node process |
| 130 | if (this.callback) { |
| 131 | return this.callback(err) |
| 132 | } |
| 133 | this.emit('error', err) |
| 134 | } |
| 135 | |
| 136 | handleReadyForQuery(con) { |
| 137 | if (this._canceledDueToError) { |
no outgoing calls
no test coverage detected