(error: SqlError)
| 1792 | } |
| 1793 | |
| 1794 | onDecodeFailure(error: SqlError): void { |
| 1795 | if (this.done || this.aborted || this.phase === "drain") return |
| 1796 | if (this.phase !== "rows") return this.failDesync(`Unexpected DataRow during ${this.phase}`) |
| 1797 | this.failure = error |
| 1798 | this.phase = "drain" |
| 1799 | // The rest of the result is discarded, so skip decoding it. |
| 1800 | this.conn.session.parser.readField = undefined |
| 1801 | } |
| 1802 | |
| 1803 | onMessage(message: PgProtocol.BackendMessage<unknown>): void { |
| 1804 | if (this.aborted) { |
no test coverage detected