From 21f57a237b8338d7338918a00b0318322f547041 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/pgsql/transaction.hxx | 4 +++- 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 () { } -- cgit v1.1