Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release PGresult when an exception is thrown
Fix involves: * Call PQclear in throw_postgresql_soci_error * Change throw_postgresql_soci_error to take pointer by reference to effectively reset result * PostgreSQL tests pass * Close #86 Rename res to result for consistency. (std::unique_ptr would be bless for correct and simple RAII across SOCI)
- Loading branch information
Showing
4 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters