aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/connection.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-12 17:24:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-12 17:24:44 +0200
commit9126281b53722115b2e8624632f2dd616f0c26a0 (patch)
tree2c901cd17dc2b09c7f344d1dd21ce1c83f9dab2b /odb/mysql/connection.cxx
parentc0af27a770b1505ad6a1226f57f90642ce395296 (diff)
Completion of prepared query support
Diffstat (limited to 'odb/mysql/connection.cxx')
-rw-r--r--odb/mysql/connection.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/mysql/connection.cxx b/odb/mysql/connection.cxx
index 0e475d2..ef854c6 100644
--- a/odb/mysql/connection.cxx
+++ b/odb/mysql/connection.cxx
@@ -83,6 +83,10 @@ namespace odb
{
active_ = 0;
+ // Destroy prepared query statements before freeing the connections.
+ //
+ prepared_map_.clear ();
+
if (stmt_handles_.size () > 0)
free_stmt_handles ();
}