Skip to content

Commit

Permalink
Fix subtransactions test
Browse files Browse the repository at this point in the history
  • Loading branch information
akorotkov committed Nov 29, 2024
1 parent c494580 commit 14df974
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
14 changes: 1 addition & 13 deletions expected/subtransactions.out
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ FETCH FROM abc;
(0 rows)

ROLLBACK;
-- Check for logical xid overflow
-- Check for logical xid assignment
BEGIN;
DO $$
BEGIN
Expand All @@ -782,18 +782,6 @@ BEGIN
END LOOP;
END;$$;
ROLLBACK;
BEGIN;
DO $$
BEGIN
FOR i IN 1..100000 LOOP
BEGIN
RAISE reading_sql_data_not_permitted;
EXCEPTION WHEN reading_sql_data_not_permitted THEN END;
END LOOP;
END;$$;
ERROR: not enough logical xids
CONTEXT: PL/pgSQL function inline_code_block line 4 during statement block entry
ROLLBACK;
DROP EXTENSION orioledb CASCADE;
NOTICE: drop cascades to table o_subtrans
DROP SCHEMA subtransactions CASCADE;
Expand Down
12 changes: 1 addition & 11 deletions sql/subtransactions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ ROLLBACK TO s1;
FETCH FROM abc;
ROLLBACK;

-- Check for logical xid overflow
-- Check for logical xid assignment
BEGIN;
DO $$
BEGIN
Expand All @@ -424,16 +424,6 @@ BEGIN
END LOOP;
END;$$;
ROLLBACK;
BEGIN;
DO $$
BEGIN
FOR i IN 1..100000 LOOP
BEGIN
RAISE reading_sql_data_not_permitted;
EXCEPTION WHEN reading_sql_data_not_permitted THEN END;
END LOOP;
END;$$;
ROLLBACK;

DROP EXTENSION orioledb CASCADE;
DROP SCHEMA subtransactions CASCADE;
Expand Down

0 comments on commit 14df974

Please sign in to comment.