提交 f47bac48 编写于 作者: S Sean Griffin 提交者: GitHub

Merge pull request #29785 from cswilliams/rescue_postgres_connection_errors_on_dealloc

Catch postgres connection errors when trying to dealloc
......@@ -184,6 +184,7 @@ def []=(sql, key)
def dealloc(key)
@connection.query "DEALLOCATE #{key}" if connection_active?
rescue PG::Error
end
def connection_active?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册