提交 2088b10b 编写于 作者: R Ryuta Kamizono

`retrieve_connection_pool` return a pool, not a connection

上级 bba4d2dd
......@@ -1011,8 +1011,8 @@ def retrieve_connection(spec_name) #:nodoc:
# Returns true if a connection that's accessible to this class has
# already been opened.
def connected?(spec_name)
conn = retrieve_connection_pool(spec_name)
conn && conn.connected?
pool = retrieve_connection_pool(spec_name)
pool && pool.connected?
end
# Remove the connection for this class. This will close the active
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册