Skip to content

Commit

Permalink
Add commit and rollback in lab 3 30 and 40 test
Browse files Browse the repository at this point in the history
  • Loading branch information
hnjylwb committed Mar 9, 2024
1 parent 9057f7a commit 2e3e27a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/lab3/30-repeatable_read.test
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,32 @@ select * from rr;
----
1 a

statement ok C2
commit;

query rowsort C1
select * from rr;
----
0 a
1 b

query rowsort C2
select * from rr;
----
1 a

statement ok C1
rollback;

query rowsort C1
select * from rr;
----
1 a

query rowsort C2
select * from rr;
----
1 a

statement ok
drop table rr;
27 changes: 27 additions & 0 deletions test/lab3/40-read_committed.test
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,32 @@ select * from rc;
----
1 a

statement ok C2
commit;

query rowsort C1
select * from rc;
----
1 a
1 b

query rowsort C2
select * from rc;
----
1 a

statement ok C1
rollback;

query rowsort C1
select * from rc;
----
1 a

query rowsort C2
select * from rc;
----
1 a

statement ok
drop table rc;

0 comments on commit 2e3e27a

Please sign in to comment.