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() --- tracer/transaction/driver.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tracer/transaction') diff --git a/tracer/transaction/driver.cxx b/tracer/transaction/driver.cxx index 2fd8e06..92ce0f0 100644 --- a/tracer/transaction/driver.cxx +++ b/tracer/transaction/driver.cxx @@ -28,7 +28,7 @@ main () // cout << "test 001" << endl; { - transaction t (db.begin_transaction ()); + transaction t (db.begin ()); assert (&t.database () == &db); assert (transaction::has_current ()); assert (&transaction::current () == &t); @@ -38,7 +38,7 @@ main () // cout << "test 002" << endl; { - transaction t (db.begin_transaction ()); + transaction t (db.begin ()); t.commit (); } @@ -46,7 +46,7 @@ main () // cout << "test 003" << endl; { - transaction t (db.begin_transaction ()); + transaction t (db.begin ()); t.rollback (); } @@ -54,17 +54,17 @@ main () // cout << "test 004" << endl; { - transaction t (db.begin_transaction ()); + transaction t (db.begin ()); } // Nested transaction. // cout << "test 005" << endl; { - transaction t (db.begin_transaction ()); + transaction t (db.begin ()); try { - transaction n (db.begin_transaction ()); + transaction n (db.begin ()); } catch (const already_in_transaction&) { @@ -78,7 +78,7 @@ main () { assert (sizeof (tracer::transaction) == sizeof (transaction)); - tracer::transaction t (db.begin_transaction ()); + tracer::transaction t (db.begin ()); tracer::transaction& r (tracer::transaction::current ()); assert (&t == &r); } -- cgit v1.1