Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 007c4e2

Browse files
committed
Sort order was fixed.
1 parent c550a4f commit 007c4e2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/test/isolation/expected/snapfs_switch_to_snapshot_table.out

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ step s2_tab_u:
2323
update foo set name = name || '_upd_sess_2';
2424

2525
step s1_tab_s:
26-
select * from foo;
26+
select * from foo order by id;
2727

2828
id name
2929

3030
1 some_text_sess_1_upd_sess_2
3131
2 some_text_sess_2_upd_sess_2
3232
step s2_tab_s:
33-
select * from foo;
33+
select * from foo order by id;
3434

3535
id name
3636

@@ -43,12 +43,12 @@ pg_switch_to_snapshot
4343

4444

4545
step s1_tab_s:
46-
select * from foo;
46+
select * from foo order by id;
4747

4848
id name
4949

5050
step s2_tab_s:
51-
select * from foo;
51+
select * from foo order by id;
5252

5353
id name
5454

@@ -63,14 +63,14 @@ step s2_tab_u:
6363

6464
ERROR: Updates are prohibited in snapshot
6565
step s1_tab_s:
66-
select * from foo;
66+
select * from foo order by id;
6767

6868
id name
6969

7070
1 some_text_sess_1
7171
2 some_text_sess_2
7272
step s2_tab_s:
73-
select * from foo;
73+
select * from foo order by id;
7474

7575
id name
7676

@@ -86,14 +86,14 @@ step s2_tab_u:
8686
update foo set name = name || '_upd_sess_2';
8787

8888
step s1_tab_s:
89-
select * from foo;
89+
select * from foo order by id;
9090

9191
id name
9292

9393
1 some_text_sess_1_upd_sess_2_upd_sess_2
9494
2 some_text_sess_2_upd_sess_2_upd_sess_2
9595
step s2_tab_s:
96-
select * from foo;
96+
select * from foo order by id;
9797

9898
id name
9999

src/test/isolation/specs/snapfs_switch_to_snapshot_table.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ setup {
77
teardown {
88
select pg_switch_to_snapshot( 0 );
99
select pg_remove_snapshot( ( select recent_snapshot from pg_control_snapshot() ) );
10-
drop table foo;
10+
drop table IF EXISTS foo;
1111
}
1212

1313
session "s1"
@@ -32,7 +32,7 @@ step "s1_tab_i" {
3232
}
3333

3434
step "s1_tab_s" {
35-
select * from foo;
35+
select * from foo order by id;
3636
}
3737

3838
session "s2"
@@ -45,7 +45,7 @@ step "s2_tab_u" {
4545
}
4646

4747
step "s2_tab_s" {
48-
select * from foo;
48+
select * from foo order by id;
4949
}
5050

5151
permutation "s1_mk_sn" "s1_tab_i" "s2_tab_i" "s1_mk_sn" "s2_tab_u" "s1_tab_s" "s2_tab_s" "s1_sw_sn_1" "s1_tab_s" "s2_tab_s" "s1_sw_sn_2" "s2_tab_u" "s1_tab_s" "s2_tab_s" "s1_sw_sn_0" "s2_tab_u" "s1_tab_s" "s2_tab_s"

0 commit comments

Comments
 (0)