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