mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 03:15:57 +01:00
Use tx_isolation for MySQL lower than 8. (#39437).
git-svn-id: https://svn.redmine.org/redmine/trunk@22464 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -32,7 +32,7 @@ class IssueNestedSetConcurrencyTest < ActiveSupport::TestCase
|
||||
skip if sqlite?
|
||||
if mysql?
|
||||
connection = ActiveRecord::Base.connection_db_config.configuration_hash.deep_dup
|
||||
connection[:variables] = { transaction_isolation: "READ-COMMITTED" }
|
||||
connection[:variables] = mysql8? ? { transaction_isolation: "READ-COMMITTED" } : { tx_isolation: "READ-COMMITTED" }
|
||||
ActiveRecord::Base.establish_connection connection
|
||||
end
|
||||
User.current = nil
|
||||
|
||||
Reference in New Issue
Block a user