aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-04-25 07:34:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-25 07:34:35 +0200
commitfc0d0547c5211043b3310fba1eb196a83389b828 (patch)
treefa933c8e5715454972720d7f75635dec098a5afd
parent6a0748d8fc5bdc7e584ca557f07ce53a796fd384 (diff)
Add default constructor, finalized() accessor to transaction
-rw-r--r--odb/mssql/transaction.hxx4
-rw-r--r--odb/mssql/transaction.ixx10
2 files changed, 11 insertions, 3 deletions
diff --git a/odb/mssql/transaction.hxx b/odb/mssql/transaction.hxx
index 3dad3be..a518a8c 100644
--- a/odb/mssql/transaction.hxx
+++ b/odb/mssql/transaction.hxx
@@ -28,7 +28,9 @@ namespace odb
typedef mssql::connection connection_type;
explicit
- transaction (transaction_impl*);
+ transaction (transaction_impl*, bool make_current = true);
+
+ transaction ();
// Return the database this transaction is on.
//
diff --git a/odb/mssql/transaction.ixx b/odb/mssql/transaction.ixx
index ba17e58..808fa25 100644
--- a/odb/mssql/transaction.ixx
+++ b/odb/mssql/transaction.ixx
@@ -10,8 +10,14 @@ namespace odb
namespace mssql
{
inline transaction::
- transaction (transaction_impl* impl)
- : odb::transaction (impl)
+ transaction (transaction_impl* impl, bool make_current)
+ : odb::transaction (impl, make_current)
+ {
+ }
+
+ inline transaction::
+ transaction ()
+ : odb::transaction ()
{
}