提交 7eb554bd 编写于 作者: B Brian Lopez 提交者: Aaron Patterson

switch over to Mysql2::Client#ping for the mysql2 connection check

上级 0e9c7a26
......@@ -197,10 +197,7 @@ def disable_referential_integrity(&block) #:nodoc:
def active?
return false unless @connection
@connection.query 'select 1'
true
rescue Mysql2::Error
false
@connection.ping
end
def reconnect!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册