aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/connection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mssql/connection.cxx')
-rw-r--r--odb/mssql/connection.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/odb/mssql/connection.cxx b/odb/mssql/connection.cxx
index 2f882c3..401d701 100644
--- a/odb/mssql/connection.cxx
+++ b/odb/mssql/connection.cxx
@@ -105,6 +105,7 @@ namespace odb
// Deallocate prepared statements before we close the connection.
//
statement_cache_.reset ();
+ direct_stmt_.reset ();
if (state_ != state_disconnected)
SQLDisconnect (handle_); // Ignore any errors.