* This subroutine deletes any existing async result, sets conn->result * to a PGresult with status PGRES_FATAL_ERROR, and stores the current * contents of conn->errorMessage into that result. */
| 797 | * contents of conn->errorMessage into that result. |
| 798 | */ |
| 799 | void |
| 800 | pqSaveErrorResult(PGconn *conn) |
| 801 | { |
| 802 | pqClearAsyncResult(conn); |
| 803 | conn->result = PQmakeEmptyPGresult(conn, PGRES_FATAL_ERROR); |
| 804 | } |
| 805 | |
| 806 | /* |
| 807 | * As above, after appending conn->write_err_msg to whatever other error we |
no test coverage detected