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/transaction-impl.cxx | |
parent | 8823eb1c28f6589068a080a68283a8ddb47cb71b (diff) |
Implement statements; add support for tracing
Diffstat (limited to 'odb/mssql/transaction-impl.cxx')
-rw-r--r-- | odb/mssql/transaction-impl.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/odb/mssql/transaction-impl.cxx b/odb/mssql/transaction-impl.cxx index 308f078..68fee22 100644 --- a/odb/mssql/transaction-impl.cxx +++ b/odb/mssql/transaction-impl.cxx @@ -43,14 +43,11 @@ namespace odb odb::transaction_impl::connection_ = connection_.get (); } - /* - @@ TODO { odb::tracer* t; if ((t = connection_->tracer ()) || (t = database_.tracer ())) t->execute (*connection_, "BEGIN"); } - */ // In ODBC a transaction is started automatically before the first // statement is executed. @@ -60,14 +57,11 @@ namespace odb void transaction_impl:: commit () { - /* - @@ TODO { odb::tracer* t; if ((t = connection_->tracer ()) || (t = database_.tracer ())) t->execute (*connection_, "COMMIT"); } - */ SQLRETURN r ( SQLEndTran (SQL_HANDLE_DBC, connection_->handle (), SQL_COMMIT)); @@ -84,14 +78,11 @@ namespace odb void transaction_impl:: rollback () { - /* - @@ TODO { odb::tracer* t; if ((t = connection_->tracer ()) || (t = database_.tracer ())) t->execute (*connection_, "ROLLBACK"); } - */ SQLRETURN r ( SQLEndTran (SQL_HANDLE_DBC, connection_->handle (), SQL_ROLLBACK)); |