aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/connection.cxx2
1 files changed, 2 insertions, 0 deletions
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 ();
}