Fix code formatting and change test result

pull/7435/head
Denis Erokhin 2024-01-23 12:10:35 +03:00
parent 07ed6c2ed4
commit d977b376bb
3 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ TaskListRequiresRollback(List *taskList)
if (ReadOnlyTask(task->taskType))
{
return (SelectOpensTransactionBlock && IsTransactionBlock()) ||
IsolationUsesXactSnapshot();
IsolationUsesXactSnapshot();
}
if (IsMultiStatementTransaction())

View File

@ -149,11 +149,11 @@ SELECT current_setting('transaction_isolation') FROM test WHERE id = 1;
(1 row)
END;
-- SET is not propagated and plain SELECT does not use transaction blocks
-- SET is propagated due plain SELECT uses transaction blocks in repeatable read level
SELECT DISTINCT current_setting('transaction_isolation') FROM test;
current_setting
---------------------------------------------------------------------
read committed
repeatable read
(1 row)
-- the CTE will trigger transaction blocks

View File

@ -84,7 +84,7 @@ BEGIN;
SELECT current_setting('transaction_isolation') FROM test WHERE id = 1;
END;
-- SET is not propagated and plain SELECT does not use transaction blocks
-- SET is propagated due plain SELECT uses transaction blocks in repeatable read level
SELECT DISTINCT current_setting('transaction_isolation') FROM test;
-- the CTE will trigger transaction blocks