diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-19 11:40:30 +0200 |
commit | d94948b8bccfd8748245726487d54c41bb199baf (patch) | |
tree | c83176902ed8cb3c49532078e0705e2fc6621555 /odb/sqlite/connection.cxx | |
parent | 1c8dc77a0feae8b33e8c06f7ba076bd26d278054 (diff) |
Completion of prepared query support
Diffstat (limited to 'odb/sqlite/connection.cxx')
-rw-r--r-- | odb/sqlite/connection.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/odb/sqlite/connection.cxx b/odb/sqlite/connection.cxx index a477e28..bcf28a2 100644 --- a/odb/sqlite/connection.cxx +++ b/odb/sqlite/connection.cxx @@ -13,6 +13,7 @@ #include <odb/sqlite/transaction.hxx> #include <odb/sqlite/statement.hxx> #include <odb/sqlite/statement-cache.hxx> +#include <odb/sqlite/prepared-query.hxx> #include <odb/sqlite/error.hxx> #include <odb/sqlite/exceptions.hxx> // deadlock @@ -101,6 +102,9 @@ namespace odb connection:: ~connection () { + // Destroy prepared query statements before freeing the connections. + // + prepared_map_.clear (); } transaction_impl* connection:: |