diff options
-rw-r--r-- | odb/mysql/connection.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/mysql/connection.cxx b/odb/mysql/connection.cxx index cfdd26c..3f4a664 100644 --- a/odb/mysql/connection.cxx +++ b/odb/mysql/connection.cxx @@ -62,6 +62,10 @@ namespace odb connection:: ~connection () { + // Deallocate prepared statements before we close the connection. + // + statement_cache_.reset (); + if (stmt_handles_.size () > 0) free_stmt_handles (); |