From 9fce9a7250f63a2a3cceeb0aac7b22d5dd7e6915 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 30 Aug 2011 16:10:02 +0200 Subject: Implement uniform handle management across all databases Also use the auto_handle template instead of the raw handle in connection, statement, and result classes. This removes a lot of brittle "exception safety guarantee" code that we had in those classes. --- odb/pgsql/statement.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'odb/pgsql/statement.hxx') diff --git a/odb/pgsql/statement.hxx b/odb/pgsql/statement.hxx index 11e04b3..6e5484a 100644 --- a/odb/pgsql/statement.hxx +++ b/odb/pgsql/statement.hxx @@ -15,7 +15,8 @@ #include #include -#include +#include // PGresult +#include #include @@ -157,7 +158,7 @@ namespace odb binding& data_; - PGresult* result_; + auto_handle result_; std::size_t row_count_; std::size_t current_row_; }; -- cgit v1.1