Ticket #1514 (closed defect: fixed)
Query results not cleaned in Soft Transactions of PG
| Reported by: | mloskot | Owned by: | mloskot |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | OGR_SF | Version: | 1.4.0 |
| Severity: | major | Keywords: | |
| Cc: |
Description (last modified by mloskot) (diff)
In functions operating on Soft Transactions, query results are not properly released when error occur. Is it intentional?
For example, in OGRPGDataSource::SoftRollback?()
hResult = PQexec(hPGConn, "ROLLBACK"); if( !hResult || PQresultStatus(hResult) != PGRES_COMMAND_OK ) return OGRERR_FAILURE; PQclear( hResult );
The PQclear() call is missing before return OGRERR_FAILURE.
Change History
Note: See
TracTickets for help on using
tickets.
