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))
|
if (ReadOnlyTask(task->taskType))
|
||||||
{
|
{
|
||||||
return (SelectOpensTransactionBlock && IsTransactionBlock()) ||
|
return (SelectOpensTransactionBlock && IsTransactionBlock()) ||
|
||||||
IsolationUsesXactSnapshot();
|
IsolationUsesXactSnapshot();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsMultiStatementTransaction())
|
if (IsMultiStatementTransaction())
|
||||||
|
|
|
@ -149,11 +149,11 @@ SELECT current_setting('transaction_isolation') FROM test WHERE id = 1;
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
END;
|
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;
|
SELECT DISTINCT current_setting('transaction_isolation') FROM test;
|
||||||
current_setting
|
current_setting
|
||||||
---------------------------------------------------------------------
|
---------------------------------------------------------------------
|
||||||
read committed
|
repeatable read
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- the CTE will trigger transaction blocks
|
-- the CTE will trigger transaction blocks
|
||||||
|
|
|
@ -84,7 +84,7 @@ BEGIN;
|
||||||
SELECT current_setting('transaction_isolation') FROM test WHERE id = 1;
|
SELECT current_setting('transaction_isolation') FROM test WHERE id = 1;
|
||||||
END;
|
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;
|
SELECT DISTINCT current_setting('transaction_isolation') FROM test;
|
||||||
|
|
||||||
-- the CTE will trigger transaction blocks
|
-- the CTE will trigger transaction blocks
|
||||||
|
|
Loading…
Reference in New Issue