aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite')
-rw-r--r--odb/sqlite/transaction.hxx4
-rw-r--r--odb/sqlite/transaction.ixx10
2 files changed, 11 insertions, 3 deletions
diff --git a/odb/sqlite/transaction.hxx b/odb/sqlite/transaction.hxx
index beb8d64..dcbbf09 100644
--- a/odb/sqlite/transaction.hxx
+++ b/odb/sqlite/transaction.hxx
@@ -27,7 +27,9 @@ namespace odb
typedef sqlite::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/sqlite/transaction.ixx b/odb/sqlite/transaction.ixx
index 05be5c8..58ee7b9 100644
--- a/odb/sqlite/transaction.ixx
+++ b/odb/sqlite/transaction.ixx
@@ -10,8 +10,14 @@ namespace odb
namespace sqlite
{
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 ()
{
}