From 6d670f2256f915ac5c116e6d70192ce990bbfd82 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Jul 2011 15:15:21 +0200 Subject: Free prepared statement cache before closing connection --- odb/mysql/connection.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/odb/mysql/connection.cxx b/odb/mysql/connection.cxx index cfdd26c..3f4a664 100644 --- a/odb/mysql/connection.cxx +++ b/odb/mysql/connection.cxx @@ -62,6 +62,10 @@ namespace odb connection:: ~connection () { + // Deallocate prepared statements before we close the connection. + // + statement_cache_.reset (); + if (stmt_handles_.size () > 0) free_stmt_handles (); -- cgit v1.1