aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/connection.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-15 13:17:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-15 13:17:30 +0200
commit043f4a1a1bb27baafa25c959e2284453ca32dc47 (patch)
treeebaefd68f235350b1a14690c6d89e726d4aca8da /odb/mssql/connection.cxx
parenta049724c258a42af57d1ff572c3d15a3678e3875 (diff)
Implement early connection release
Diffstat (limited to 'odb/mssql/connection.cxx')
-rw-r--r--odb/mssql/connection.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/mssql/connection.cxx b/odb/mssql/connection.cxx
index 808d560..4c69a0c 100644
--- a/odb/mssql/connection.cxx
+++ b/odb/mssql/connection.cxx
@@ -103,7 +103,8 @@ namespace odb
{
// Deallocate prepared statements before we close the connection.
//
- prepared_map_.clear ();
+ recycle ();
+ clear_prepared_map ();
statement_cache_.reset ();
direct_stmt_.reset ();