aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/connection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/connection.hxx')
-rw-r--r--odb/pgsql/connection.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/pgsql/connection.hxx b/odb/pgsql/connection.hxx
index fd74c6e..e8a1f17 100644
--- a/odb/pgsql/connection.hxx
+++ b/odb/pgsql/connection.hxx
@@ -84,7 +84,11 @@ namespace odb
init ();
private:
+ // Needed to break the circular connection-database dependency
+ // (odb::connection has the odb::database member).
+ //
database_type& db_;
+
auto_handle<PGconn> handle_;
// Keep statement_cache_ after handle_ so that it is destroyed before