Skip to content

Commit ad4b7ae

Browse files
committed
Make command order in test more sensible
Through several updates, the CREATE USER command has been separated from where the user is actually used in the test.
1 parent f86f46d commit ad4b7ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/regress/expected/sequence.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,6 @@ DROP SEQUENCE seq2;
599599
-- should fail
600600
SELECT lastval();
601601
ERROR: lastval is not yet defined in this session
602-
CREATE USER regress_seq_user;
603602
-- Test sequences in read-only transactions
604603
CREATE TEMPORARY SEQUENCE sequence_test_temp1;
605604
START TRANSACTION READ ONLY;
@@ -623,6 +622,7 @@ SELECT setval('sequence_test2', 1); -- error
623622
ERROR: cannot execute setval() in a read-only transaction
624623
ROLLBACK;
625624
-- privileges tests
625+
CREATE USER regress_seq_user;
626626
-- nextval
627627
BEGIN;
628628
SET LOCAL SESSION AUTHORIZATION regress_seq_user;

src/test/regress/sql/sequence.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,6 @@ DROP SEQUENCE seq2;
272272
-- should fail
273273
SELECT lastval();
274274

275-
CREATE USER regress_seq_user;
276-
277275
-- Test sequences in read-only transactions
278276
CREATE TEMPORARY SEQUENCE sequence_test_temp1;
279277
START TRANSACTION READ ONLY;
@@ -287,6 +285,8 @@ ROLLBACK;
287285

288286
-- privileges tests
289287

288+
CREATE USER regress_seq_user;
289+
290290
-- nextval
291291
BEGIN;
292292
SET LOCAL SESSION AUTHORIZATION regress_seq_user;

0 commit comments

Comments
 (0)