mirror of https://github.com/citusdata/citus.git
Fix code formatting and change test result
parent
07ed6c2ed4
commit
d977b376bb
|
@ -81,7 +81,7 @@ TaskListRequiresRollback(List *taskList)
|
|||
if (ReadOnlyTask(task->taskType))
|
||||
{
|
||||
return (SelectOpensTransactionBlock && IsTransactionBlock()) ||
|
||||
IsolationUsesXactSnapshot();
|
||||
IsolationUsesXactSnapshot();
|
||||
}
|
||||
|
||||
if (IsMultiStatementTransaction())
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue