diff options
-rw-r--r-- | odb/pgsql/connection.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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_); } } |