diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-25 07:34:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-25 07:34:36 +0200 |
commit | 5793218aa39d188719d531593fe6fb4ab6cdb805 (patch) | |
tree | 71dd56b6fa92b79b23b6de5be9a99110812f2f2b | |
parent | 431c7c5d27e8274689cb058ab15c8dd446dd2820 (diff) |
Add default constructor, finalized() accessor to transaction
-rw-r--r-- | odb/oracle/transaction.hxx | 4 | ||||
-rw-r--r-- | 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 () { } |