diff options
Diffstat (limited to 'common/transaction/driver.cxx')
-rw-r--r-- | common/transaction/driver.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/transaction/driver.cxx b/common/transaction/driver.cxx index a487a7d..64351c3 100644 --- a/common/transaction/driver.cxx +++ b/common/transaction/driver.cxx @@ -122,4 +122,14 @@ main (int argc, char* argv[]) odb_db::transaction& r (odb_db::transaction::current ()); assert (&t == &r); } + + // Transaction restart. + // + cout << "test 007" << endl; + { + transaction t (db->begin ()); + t.commit (); + t.reset (db->begin ()); + t.commit (); + } } |