aboutsummaryrefslogtreecommitdiff
path: root/tracer
diff options
context:
space:
mode:
Diffstat (limited to 'tracer')
-rw-r--r--tracer/object/driver.cxx24
-rw-r--r--tracer/template/driver.cxx2
-rw-r--r--tracer/transaction/driver.cxx14
3 files changed, 20 insertions, 20 deletions
diff --git a/tracer/object/driver.cxx b/tracer/object/driver.cxx
index c8258b8..085c6a3 100644
--- a/tracer/object/driver.cxx
+++ b/tracer/object/driver.cxx
@@ -47,7 +47,7 @@ main ()
cout << "\ntest 002" << endl;
{
object o1 (1);
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
db.persist (o1);
cout << "s 2" << endl;
@@ -60,7 +60,7 @@ main ()
cout << "\ntest 003" << endl;
{
object o1 (0);
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
try
{
@@ -79,7 +79,7 @@ main ()
{
object o1 (1);
object o2 (2);
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
db.persist (o1);
db.persist (o2);
@@ -96,7 +96,7 @@ main ()
cout << "\ntest 005" << endl;
{
object o1 (0);
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
try
{
@@ -113,7 +113,7 @@ main ()
//
cout << "\ntest 006" << endl;
{
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
auto_ptr<object> o1 (db.load<object> (1));
cout << "s 2" << endl;
@@ -125,7 +125,7 @@ main ()
//
cout << "\ntest 007" << endl;
{
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
try
{
@@ -143,7 +143,7 @@ main ()
cout << "\ntest 008" << endl;
{
object o1;
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
db.load (1, o1);
cout << "s 2" << endl;
@@ -156,7 +156,7 @@ main ()
cout << "\ntest 009" << endl;
{
object o1;
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
try
{
@@ -173,7 +173,7 @@ main ()
//
cout << "\ntest 010" << endl;
{
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
auto_ptr<object> o1 (db.load<object> (1));
cout << "s 2" << endl;
@@ -188,7 +188,7 @@ main ()
cout << "\ntest 011" << endl;
{
object o1 (0);
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
try
{
@@ -205,7 +205,7 @@ main ()
//
cout << "\ntest 012" << endl;
{
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
auto_ptr<object> o1 (db.find<object> (1));
assert (o1.get () != 0);
@@ -221,7 +221,7 @@ main ()
cout << "\ntest 013" << endl;
{
object o1;
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
cout << "s 1" << endl;
bool r (db.find (1, o1));
assert (r);
diff --git a/tracer/template/driver.cxx b/tracer/template/driver.cxx
index c727fac..3b92d4f 100644
--- a/tracer/template/driver.cxx
+++ b/tracer/template/driver.cxx
@@ -29,7 +29,7 @@ main ()
//
cout << "test 001" << endl;
{
- transaction t (db.begin_transaction ());
+ transaction t (db.begin ());
t.commit ();
}
}
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);
}