diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 16:45:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 16:45:23 +0200 |
commit | d073555e513e671b197c5eb31c0b2b269f137d0f (patch) | |
tree | 0a2e77da3a968837606b8813745fe2b10e6acf22 /common/transaction/driver.cxx | |
parent | 61ff4c0458fa0362e054970efbcc21d66240ccc9 (diff) |
Add database::reset()
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 (); + } } |