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 | 21f57a237b8338d7338918a00b0318322f547041 (patch) | |
tree | 55bc5e9d1d504d92930c68ab564ae2b9231f173a | |
parent | 90786906ee3bce15c83445c0ba25a69a6b7e115d (diff) |
Add default constructor, finalized() accessor to transaction
-rw-r--r-- | odb/pgsql/transaction.hxx | 4 | ||||
-rw-r--r-- | odb/pgsql/transaction.ixx | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/odb/pgsql/transaction.hxx b/odb/pgsql/transaction.hxx index 3c4640d..9c4c9a1 100644 --- a/odb/pgsql/transaction.hxx +++ b/odb/pgsql/transaction.hxx @@ -28,7 +28,9 @@ namespace odb typedef pgsql::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/pgsql/transaction.ixx b/odb/pgsql/transaction.ixx index 99c686a..79ea29b 100644 --- a/odb/pgsql/transaction.ixx +++ b/odb/pgsql/transaction.ixx @@ -10,8 +10,14 @@ namespace odb namespace pgsql { 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 () { } |