rails/rails — pull request #4845 by sferik (2012-02-02 01:30:55+00:00)
Title: Query bind nil bug

In cases where the query bind is `nil`, `exec_explain` raises the following error:

NoMethodError: undefined method `empty?' for nil:NilClass

This patch changes `unless bind.empty?` to `unless bind.blank?` and adds a test case for a `nil` bind.