From 0f765b6964534e868029e1402fe44998e3cfcd26 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 19 Aug 2010 11:23:10 +0200 Subject: Release connection after commit/rollback --- odb/mysql/transaction-impl.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/odb/mysql/transaction-impl.cxx b/odb/mysql/transaction-impl.cxx index b6dda27..4cea7d1 100644 --- a/odb/mysql/transaction-impl.cxx +++ b/odb/mysql/transaction-impl.cxx @@ -39,6 +39,10 @@ namespace odb if (mysql_real_query (h, "commit", 6) != 0) throw database_exception (h); + + // Release the connection. + // + connection_.reset (); } void transaction_impl:: @@ -51,6 +55,10 @@ namespace odb if (mysql_real_query (h, "rollback", 8) != 0) throw database_exception (h); + + // Release the connection. + // + connection_.reset (); } } } -- cgit v1.1