From 23bdd06c5ec17206d2dfb75ad55b3c613921dce7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Sep 2010 20:14:08 +0200 Subject: Rename begin_transaction() to begin() --- common/lifecycle/driver.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'common/lifecycle') diff --git a/common/lifecycle/driver.cxx b/common/lifecycle/driver.cxx index 5518a40..f836a2b 100644 --- a/common/lifecycle/driver.cxx +++ b/common/lifecycle/driver.cxx @@ -32,7 +32,7 @@ main (int argc, char* argv[]) // try { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr o (db->load (1)); assert (false); t.commit (); @@ -47,13 +47,13 @@ main (int argc, char* argv[]) object o (1); o.str_ = "value 1"; - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->persist (o); t.commit (); try { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); db->persist (o); assert (false); t.commit (); @@ -64,7 +64,7 @@ main (int argc, char* argv[]) } { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr o (db->load (1)); assert (o->str_ == "value 1"); t.commit (); @@ -73,7 +73,7 @@ main (int argc, char* argv[]) // modified // { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr o (db->load (1)); o->str_ = "value 2"; db->update (*o); @@ -81,7 +81,7 @@ main (int argc, char* argv[]) } { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr o (db->load (1)); assert (o->str_ == "value 2"); t.commit (); @@ -90,7 +90,7 @@ main (int argc, char* argv[]) // transient // { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr o (db->load (1)); db->erase (*o); t.commit (); @@ -98,7 +98,7 @@ main (int argc, char* argv[]) try { - transaction t (db->begin_transaction ()); + transaction t (db->begin ()); auto_ptr o (db->load (1)); assert (false); t.commit (); -- cgit v1.1