From 0ea92f732f705adb84b2fd1c98b405d0277201af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Jul 2011 15:06:41 +0200 Subject: Free prepared statement cache before closing connection --- odb/pgsql/connection.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'odb') diff --git a/odb/pgsql/connection.cxx b/odb/pgsql/connection.cxx index 51e09b2..afb7670 100644 --- a/odb/pgsql/connection.cxx +++ b/odb/pgsql/connection.cxx @@ -40,6 +40,10 @@ namespace odb connection:: ~connection () { + // Deallocate prepared statements before we close the connection. + // + statement_cache_.reset (); + PQfinish (handle_); } } -- cgit v1.1