aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-30 16:19:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-30 16:19:42 +0200
commitad288e347bb45eb7a6bcbe3ed3821d008d816a5d (patch)
treeef029ce5495e9a539e39d2bb48a38c06b1dfb232 /odb/pgsql
parent9fce9a7250f63a2a3cceeb0aac7b22d5dd7e6915 (diff)
Add comment with some explanations
Diffstat (limited to 'odb/pgsql')
-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