From 5793218aa39d188719d531593fe6fb4ab6cdb805 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Apr 2013 07:34:36 +0200 Subject: Add default constructor, finalized() accessor to transaction --- odb/oracle/transaction.hxx | 4 +++- odb/oracle/transaction.ixx | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/odb/oracle/transaction.hxx b/odb/oracle/transaction.hxx index 982d039..5352fae 100644 --- a/odb/oracle/transaction.hxx +++ b/odb/oracle/transaction.hxx @@ -28,7 +28,9 @@ namespace odb typedef oracle::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/oracle/transaction.ixx b/odb/oracle/transaction.ixx index 5397d5a..4c18bbf 100644 --- a/odb/oracle/transaction.ixx +++ b/odb/oracle/transaction.ixx @@ -10,8 +10,14 @@ namespace odb namespace oracle { 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 () { } -- cgit v1.1