(con)
| 134 | } |
| 135 | |
| 136 | handleReadyForQuery(con) { |
| 137 | if (this._canceledDueToError) { |
| 138 | return this.handleError(this._canceledDueToError, con) |
| 139 | } |
| 140 | if (this.callback) { |
| 141 | try { |
| 142 | this.callback(null, this._results) |
| 143 | } catch (err) { |
| 144 | process.nextTick(() => { |
| 145 | throw err |
| 146 | }) |
| 147 | } |
| 148 | } |
| 149 | this.emit('end', this._results) |
| 150 | } |
| 151 | |
| 152 | submit(connection) { |
| 153 | if (typeof this.text !== 'string' && typeof this.name !== 'string') { |
no test coverage detected