diff options
-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 () { } |