aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/connection.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-12 17:24:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-12 17:24:44 +0200
commitfef380f6c9a5fb9904d551478fe180a9c5d24b37 (patch)
tree06cd811ee093e0e52cb5e029f0705b8e6323a334 /odb/pgsql/connection.cxx
parent9f994010f871ce0ea1aea58482ddef503cfc81c3 (diff)
Completion of prepared query support
Diffstat (limited to 'odb/pgsql/connection.cxx')
-rw-r--r--odb/pgsql/connection.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/pgsql/connection.cxx b/odb/pgsql/connection.cxx
index 40a65ef..7921723 100644
--- a/odb/pgsql/connection.cxx
+++ b/odb/pgsql/connection.cxx
@@ -70,6 +70,9 @@ namespace odb
connection::
~connection ()
{
+ // Destroy prepared query statements before freeing the connections.
+ //
+ prepared_map_.clear ();
}
transaction_impl* connection::