diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-25 07:34:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-25 07:34:35 +0200 |
commit | 2a1d1e2ccaded4b45619498e8e4c337f086d19fb (patch) | |
tree | 917543e5be6bc7b939358811f273cb409643d0dd | |
parent | b69ec982bc3b417f026e4828e0b16b37b64b5841 (diff) |
Add default constructor, finalized() accessor to transaction
-rw-r--r-- | odb/mysql/transaction.hxx | 4 | ||||
-rw-r--r-- | odb/mysql/transaction.ixx | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/odb/mysql/transaction.hxx b/odb/mysql/transaction.hxx index d172693..965afef 100644 --- a/odb/mysql/transaction.hxx +++ b/odb/mysql/transaction.hxx @@ -28,7 +28,9 @@ namespace odb typedef mysql::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/mysql/transaction.ixx b/odb/mysql/transaction.ixx index f5de7a8..53981f0 100644 --- a/odb/mysql/transaction.ixx +++ b/odb/mysql/transaction.ixx @@ -10,8 +10,14 @@ namespace odb namespace mysql { 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 () { } |