aboutsummaryrefslogtreecommitdiff
path: root/tracer/transaction
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-28 20:14:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-28 20:14:08 +0200
commit23bdd06c5ec17206d2dfb75ad55b3c613921dce7 (patch)
tree27585a15ff7e7d15e8c5de655571b35669e23fbd /tracer/transaction
parent125f9cbb22ab368f40b93bc3013846b812124b02 (diff)
Rename begin_transaction() to begin()
Diffstat (limited to 'tracer/transaction')
-rw-r--r--tracer/transaction/driver.cxx14
1 files changed, 7 insertions, 7 deletions
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);
}