We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e8f429 commit 73d7b5bCopy full SHA for 73d7b5b
activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb
@@ -109,8 +109,7 @@ def begin_db_transaction # :nodoc:
109
end
110
111
def begin_isolated_db_transaction(isolation) # :nodoc:
112
- begin_db_transaction
113
- execute "SET TRANSACTION ISOLATION LEVEL #{transaction_isolation_levels.fetch(isolation)}"
+ execute("BEGIN ISOLATION LEVEL #{transaction_isolation_levels.fetch(isolation)}", "TRANSACTION")
114
115
116
# Commits a transaction.
0 commit comments