cokara/marginalia — pull request #1 by carnival (2012-08-24 21:54:52+00:00)
Title: exec_query's bind parameter defaults to [] instead of nil

So "bind" is nil, then when you pass it down to exec_query, it calls "bind.empty?", which throws an error since bind is nil. It looks like the default value for exec_query's bind parameter is [] in ActiveRecord, so I just changed it to that.

For example:
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L806
https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb#L281