diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-29 12:47:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-03-29 12:47:16 +0200 |
commit | 4d0711124bb6cdca491e33a51911d20090a1879a (patch) | |
tree | f065cbd35559de57b7a948c6598a11165f86bad8 | |
parent | 9542fdc4434c3af3eaed91bf10e5b487044d8cc7 (diff) |
Clear active connection in destructor
-rw-r--r-- | odb/mysql/connection.cxx | 2 |
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 (); } |