From 4d0711124bb6cdca491e33a51911d20090a1879a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 29 Mar 2012 12:47:16 +0200 Subject: Clear active connection in destructor --- odb/mysql/connection.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odb/mysql/connection.cxx b/odb/mysql/connection.cxx index 7bc4bd5..0e475d2 100644 --- a/odb/mysql/connection.cxx +++ b/odb/mysql/connection.cxx @@ -81,6 +81,8 @@ namespace odb connection:: ~connection () { + active_ = 0; + if (stmt_handles_.size () > 0) free_stmt_handles (); } -- cgit v1.1