aboutsummaryrefslogtreecommitdiff
path: root/tracer/transaction
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-07-20 11:08:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-07-20 11:08:04 +0200
commitafc6505d75dbc391452f41081af457045d5e7526 (patch)
treee351bf3c792f85811e3bbcc75b8a8ead2f22ed0b /tracer/transaction
parentca42db0da0d12b1dcdee1cc82dbbd171131cb628 (diff)
Get rid of the session mechanism for now
Test low-level API instead.
Diffstat (limited to 'tracer/transaction')
-rw-r--r--tracer/transaction/driver.cxx21
-rw-r--r--tracer/transaction/test.std6
2 files changed, 1 insertions, 26 deletions
diff --git a/tracer/transaction/driver.cxx b/tracer/transaction/driver.cxx
index 164b9a0..752eb0b 100644
--- a/tracer/transaction/driver.cxx
+++ b/tracer/transaction/driver.cxx
@@ -7,7 +7,6 @@
#include <iostream>
#include <odb/exceptions.hxx>
-#include <odb/session.hxx>
#include <odb/transaction.hxx>
#include <odb/tracer/database.hxx>
#include <odb/tracer/transaction.hxx>
@@ -70,27 +69,9 @@ main ()
}
}
- // Existing session via current.
- //
- cout << "test 006" << endl;
- {
- session s;
- transaction t (db.begin_transaction ());
- assert (&t.session () == &s);
- }
-
- // Existing session passed explicitly.
- //
- cout << "test 007" << endl;
- {
- session s;
- transaction t (db.begin_transaction (s));
- assert (&t.session () == &s);
- }
-
// Concrete transaction type.
//
- cout << "test 008" << endl;
+ cout << "test 006" << endl;
{
assert (sizeof (tracer::transaction) == sizeof (transaction));
diff --git a/tracer/transaction/test.std b/tracer/transaction/test.std
index 8f962ef..8083774 100644
--- a/tracer/transaction/test.std
+++ b/tracer/transaction/test.std
@@ -17,9 +17,3 @@ rollback transaction
test 006
begin transaction
rollback transaction
-test 007
-begin transaction
-rollback transaction
-test 008
-begin transaction
-rollback transaction