aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/connection.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-29 08:52:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-29 08:52:28 +0200
commit9d3bf60e2d1f063abd39197b7e60bf6d2bc95aa7 (patch)
tree4a12c0bd029f8e04a383ed905157f70e764ac165 /odb/mssql/connection.cxx
parent91c962e4615101e14be4c720fc386878ddb598a4 (diff)
Add object/view/container statements, statements cache
Diffstat (limited to 'odb/mssql/connection.cxx')
-rw-r--r--odb/mssql/connection.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/odb/mssql/connection.cxx b/odb/mssql/connection.cxx
index 1609b80..03b8deb 100644
--- a/odb/mssql/connection.cxx
+++ b/odb/mssql/connection.cxx
@@ -3,16 +3,14 @@
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license : ODB NCUEL; see accompanying LICENSE file
-//@@ disabled functionality
-
#include <string>
#include <odb/mssql/mssql.hxx>
#include <odb/mssql/database.hxx>
#include <odb/mssql/connection.hxx>
#include <odb/mssql/transaction.hxx>
-//#include <odb/mssql/statement.hxx>
-//#include <odb/mssql/statement-cache.hxx>
+#include <odb/mssql/statement.hxx>
+#include <odb/mssql/statement-cache.hxx>
#include <odb/mssql/error.hxx>
using namespace std;
@@ -26,7 +24,7 @@ namespace odb
: odb::connection (db),
db_ (db),
state_ (state_disconnected),
- // statement_cache_ (new statement_cache_type (*this))
+ statement_cache_ (new statement_cache_type (*this)),
long_buffer_ (0)
{
SQLRETURN r;
@@ -96,7 +94,7 @@ namespace odb
db_ (db),
handle_ (handle),
state_ (state_connected),
- // statement_cache_ (new statement_cache_type (*this))
+ statement_cache_ (new statement_cache_type (*this)),
long_buffer_ (0)
{
}
@@ -106,7 +104,7 @@ namespace odb
{
// Deallocate prepared statements before we close the connection.
//
- //statement_cache_.reset ();
+ statement_cache_.reset ();
if (state_ != state_disconnected)
SQLDisconnect (handle_); // Ignore any errors.