summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-11-19 07:10:53 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-11-19 07:10:53 +0000
commitf24631a8bd8d2c220fa27495ef22e3672f43297b (patch)
tree19f2e97157a1225759cd0e3e9e0827cd7aa7a71e /test/unit
parent0a329dce2f94e883f2f29b7731953a3ff6377630 (diff)
downloadredmine-f24631a8bd8d2c220fa27495ef22e3672f43297b.tar.gz
redmine-f24631a8bd8d2c220fa27495ef22e3672f43297b.zip
Use tx_isolation for MySQL lower than 8. (#39437).
git-svn-id: https://svn.redmine.org/redmine/trunk@22464 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/issue_nested_set_concurrency_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_nested_set_concurrency_test.rb b/test/unit/issue_nested_set_concurrency_test.rb
index 0f330bcc8..7f45a4b8d 100644
--- a/test/unit/issue_nested_set_concurrency_test.rb
+++ b/test/unit/issue_nested_set_concurrency_test.rb
@@ -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