diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 15:08:56 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-28 15:08:56 +0200 |
commit | 91c962e4615101e14be4c720fc386878ddb598a4 (patch) | |
tree | 9c62ace7ee457f9e7c1edd9c89a5b6fba274d363 /odb/mssql/connection.hxx | |
parent | 8823eb1c28f6589068a080a68283a8ddb47cb71b (diff) |
Implement statements; add support for tracing
Diffstat (limited to 'odb/mssql/connection.hxx')
-rw-r--r-- | odb/mssql/connection.hxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/odb/mssql/connection.hxx b/odb/mssql/connection.hxx index 1a6cd24..c38692b 100644 --- a/odb/mssql/connection.hxx +++ b/odb/mssql/connection.hxx @@ -15,14 +15,15 @@ #include <odb/forward.hxx> #include <odb/connection.hxx> +#include <odb/details/buffer.hxx> #include <odb/details/shared-ptr.hxx> +#include <odb/mssql/mssql-fwd.hxx> #include <odb/mssql/version.hxx> #include <odb/mssql/forward.hxx> -//#include <odb/mssql/tracer.hxx> +#include <odb/mssql/tracer.hxx> #include <odb/mssql/transaction-impl.hxx> #include <odb/mssql/auto-handle.hxx> -#include <odb/mssql/mssql-fwd.hxx> #include <odb/mssql/details/export.hxx> @@ -66,7 +67,6 @@ namespace odb // SQL statement tracing. // public: - /* typedef mssql::tracer tracer_type; void @@ -82,7 +82,6 @@ namespace odb } using odb::connection::tracer; - */ public: bool @@ -112,6 +111,12 @@ namespace odb } */ + details::buffer& + long_buffer () + { + return long_buffer_; + } + private: connection (const connection&); connection& operator= (const connection&); @@ -133,6 +138,8 @@ namespace odb auto_handle<SQL_HANDLE_STMT> direct_stmt_; //std::auto_ptr<statement_cache_type> statement_cache_; + + details::buffer long_buffer_; }; } } |