* Handy subroutine to deallocate any partially constructed async result. * * Any "next" result gets cleared too. */
| 781 | * Any "next" result gets cleared too. |
| 782 | */ |
| 783 | void |
| 784 | pqClearAsyncResult(PGconn *conn) |
| 785 | { |
| 786 | if (conn->result) |
| 787 | PQclear(conn->result); |
| 788 | conn->result = NULL; |
| 789 | if (conn->next_result) |
| 790 | PQclear(conn->next_result); |
| 791 | conn->next_result = NULL; |
| 792 | } |
| 793 | |
| 794 | /* |
| 795 | * This subroutine deletes any existing async result, sets conn->result |
no test coverage detected