aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/transaction.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/transaction.cxx b/odb/transaction.cxx
index 313c625..bafbe99 100644
--- a/odb/transaction.cxx
+++ b/odb/transaction.cxx
@@ -66,7 +66,8 @@ namespace odb
throw transaction_already_finalized ();
finalized_ = true;
- tls_set<transaction> (current_transaction, 0);
+ transaction* t (0);
+ tls_set (current_transaction, t);
impl_->commit ();
}
@@ -77,7 +78,8 @@ namespace odb
throw transaction_already_finalized ();
finalized_ = true;
- tls_set<transaction> (current_transaction, 0);
+ transaction* t (0);
+ tls_set (current_transaction, t);
impl_->rollback ();
}