提交 4a4eedb2 编写于 作者: R Rafael França

Merge pull request #24730 from vipulnsward/move-savepoints

Move remaining current_savepoint_name to savepoints module
module ActiveRecord
module ConnectionAdapters
module Savepoints
def current_savepoint_name
current_transaction.savepoint_name
end
def create_savepoint(name = current_savepoint_name)
execute("SAVEPOINT #{name}")
end
......
......@@ -431,10 +431,6 @@ def can_perform_case_insensitive_comparison_for?(column)
end
private :can_perform_case_insensitive_comparison_for?
def current_savepoint_name
current_transaction.savepoint_name
end
# Check the connection back in to the connection pool
def close
pool.checkin self
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册