diff options
-rw-r--r-- | odb/mysql/transaction-impl.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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 (); } } } |