mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #24706 from kamipo/remove_in_doc_about_mysql_versions_below_5
Remove in the doc about MySQL versions below 5 [ci skip]
This commit is contained in:
commit
9f8a6c47c8
1 changed files with 1 additions and 3 deletions
|
@ -221,9 +221,7 @@ module ActiveRecord
|
||||||
# * You are creating a nested (savepoint) transaction
|
# * You are creating a nested (savepoint) transaction
|
||||||
#
|
#
|
||||||
# The mysql2 and postgresql adapters support setting the transaction
|
# The mysql2 and postgresql adapters support setting the transaction
|
||||||
# isolation level. However, support is disabled for MySQL versions below 5,
|
# isolation level.
|
||||||
# because they are affected by a bug[http://bugs.mysql.com/bug.php?id=39170]
|
|
||||||
# which means the isolation level gets persisted outside the transaction.
|
|
||||||
def transaction(requires_new: nil, isolation: nil, joinable: true)
|
def transaction(requires_new: nil, isolation: nil, joinable: true)
|
||||||
if !requires_new && current_transaction.joinable?
|
if !requires_new && current_transaction.joinable?
|
||||||
if isolation
|
if isolation
|
||||||
|
|
Loading…
Reference in a new issue