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

Commit c24981b

Browse files
author
Alexander Korotkov
committed
Cover PGPRO-1401 by regression test.
1 parent 089334c commit c24981b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

contrib/in_memory/expected/subtrans.out

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,10 @@ SELECT min(id), count(id), val FROM im_test1 GROUP BY val ORDER BY min(id);
290290
2 | 250 | valxxxyyyz
291291
(2 rows)
292292

293+
TRUNCATE im_test1;
294+
BEGIN;
295+
SAVEPOINT s1;
296+
SET TRANSACTION READ ONLY;
297+
SET TRANSACTION READ WRITE;
298+
ERROR: cannot set transaction read-write mode inside a read-only transaction
299+
ROLLBACK;

contrib/in_memory/sql/subtrans.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,10 @@ RELEASE s1;
145145
SELECT min(id), count(id), val FROM im_test1 GROUP BY val ORDER BY min(id);
146146
COMMIT;
147147
SELECT min(id), count(id), val FROM im_test1 GROUP BY val ORDER BY min(id);
148+
149+
TRUNCATE im_test1;
150+
BEGIN;
151+
SAVEPOINT s1;
152+
SET TRANSACTION READ ONLY;
153+
SET TRANSACTION READ WRITE;
154+
ROLLBACK;

0 commit comments

Comments
 (0)