diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-11 08:14:06 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-14 13:11:41 +0200 |
commit | 9cb039e2574f30ab64a5b934ba368eee6193964a (patch) | |
tree | 1028df22782d78213a6c4d2da50608b3292d6975 /odb/oracle/connection.cxx | |
parent | 92ab3ae987687382fc54a084669a343806d1250d (diff) |
Enable statement cache in connection
Diffstat (limited to 'odb/oracle/connection.cxx')
-rw-r--r-- | odb/oracle/connection.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/odb/oracle/connection.cxx b/odb/oracle/connection.cxx index 12e8ea0..bc77dfc 100644 --- a/odb/oracle/connection.cxx +++ b/odb/oracle/connection.cxx @@ -13,8 +13,7 @@ #include <odb/oracle/error.hxx> #include <odb/oracle/exceptions.hxx> #include <odb/oracle/auto-descriptor.hxx> - -// #include <odb/oracle/statement-cache.hxx> +#include <odb/oracle/statement-cache.hxx> using namespace std; @@ -25,8 +24,9 @@ namespace odb connection:: connection (database_type& db) : odb::connection (db), - db_ (db) - // statement_cache_ (new statement_cache_type (*this)) + db_ (db), + statement_cache_ (new statement_cache_type (*this)), + lob_buffer_ (0) { sword r (0); @@ -108,8 +108,9 @@ namespace odb connection:: connection (database_type& db, OCISvcCtx* handle) : odb::connection (db), - db_ (db) - // statement_cache_ (new statement_cache_type (*this)) + db_ (db), + statement_cache_ (new statement_cache_type (*this)), + lob_buffer_ (0) { sword r (0); @@ -135,7 +136,7 @@ namespace odb { // Deallocate prepared statements before we close the connection. // - // statement_cache_.reset (); + statement_cache_.reset (); } transaction_impl* connection:: |