Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef48a05

Browse files
committed
Improve new AND CHAIN tests
Tweak the tests so that we're not just testing the default setting oftransaction_read_only.Reported-by: fn ln <emuser20140816@gmail.com>
1 parent2403e54 commitef48a05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/test/regress/expected/transactions.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,15 +940,15 @@ ERROR: RELEASE SAVEPOINT can only be used in transaction blocks
940940
-- but this is OK, because the BEGIN converts it to a regular xact
941941
SELECT 1\; BEGIN\; SAVEPOINT sp\; ROLLBACK TO SAVEPOINT sp\; COMMIT;
942942
-- Tests for AND CHAIN in implicit transaction blocks
943-
SET TRANSACTION READWRITE\; COMMIT AND CHAIN; -- error
943+
SET TRANSACTION READONLY\; COMMIT AND CHAIN; -- error
944944
ERROR: COMMIT AND CHAIN can only be used in transaction blocks
945945
SHOW transaction_read_only;
946946
transaction_read_only
947947
-----------------------
948948
off
949949
(1 row)
950950

951-
SET TRANSACTION READWRITE\; ROLLBACK AND CHAIN; -- error
951+
SET TRANSACTION READONLY\; ROLLBACK AND CHAIN; -- error
952952
ERROR: ROLLBACK AND CHAIN can only be used in transaction blocks
953953
SHOW transaction_read_only;
954954
transaction_read_only

‎src/test/regress/sql/transactions.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ SELECT 1\; BEGIN\; SAVEPOINT sp\; ROLLBACK TO SAVEPOINT sp\; COMMIT;
542542

543543
-- Tests for AND CHAIN in implicit transaction blocks
544544

545-
SET TRANSACTION READWRITE\;COMMITAND CHAIN;-- error
545+
SET TRANSACTION READONLY\;COMMITAND CHAIN;-- error
546546
SHOW transaction_read_only;
547547

548-
SET TRANSACTION READWRITE\;ROLLBACKAND CHAIN;-- error
548+
SET TRANSACTION READONLY\;ROLLBACKAND CHAIN;-- error
549549
SHOW transaction_read_only;
550550

551551
CREATETABLEabc (aint);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp