aboutsummaryrefslogtreecommitdiff
path: root/tracer/object/test.std
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/object/test.std
parentca42db0da0d12b1dcdee1cc82dbbd171131cb628 (diff)
Get rid of the session mechanism for now
Test low-level API instead.
Diffstat (limited to 'tracer/object/test.std')
-rw-r--r--tracer/object/test.std94
1 files changed, 85 insertions, 9 deletions
diff --git a/tracer/object/test.std b/tracer/object/test.std
index c7e458c..aa495e7 100644
--- a/tracer/object/test.std
+++ b/tracer/object/test.std
@@ -1,32 +1,108 @@
+
test 001
+s 1
+s 2.b
+
+test 002
begin transaction
s 1
-insert ::object1 id 1
+insert ::object id 1
s 2
commit transaction
s 3
-test 002
+
+test 003
+begin transaction
+s 1
+insert ::object id 0
+object already persistent
+s 2
+rollback transaction
+
+test 004
begin transaction
s 1
-insert ::object1 id 1
+insert ::object id 1
+insert ::object id 2
s 2
+delete ::object id 1
+delete ::object id 2
s 3
-delete ::object1 id 1
commit transaction
s 4
-test 003
+
+test 005
begin transaction
s 1
-select ::object1 id 1
+delete ::object id 0
+object not persistent
+s 2
+rollback transaction
+
+test 006
+begin transaction
+s 1
+select ::object id 1
s 2
commit transaction
s 3
-test 004
+
+test 007
begin transaction
s 1
-select ::object1 id 1
+select ::object id 0
+object not persistent
s 2
+rollback transaction
+
+test 008
+begin transaction
+s 1
+select ::object id 1
+s 2
+commit transaction
+s 3
+
+test 009
+begin transaction
+s 1
+select ::object id 0
+object not persistent
+s 2
+rollback transaction
+
+test 010
+begin transaction
+s 1
+select ::object id 1
+s 2
+update ::object id 1
s 3
-update ::object1 id 1
commit transaction
s 4
+
+test 011
+begin transaction
+s 1
+update ::object id 0
+object not persistent
+s 2
+rollback transaction
+
+test 012
+begin transaction
+s 1
+select ::object id 1
+select ::object id 0
+s 2
+commit transaction
+s 3
+
+test 013
+begin transaction
+s 1
+select ::object id 1
+select ::object id 0
+s 2
+commit transaction
+s 3