This is happens on Sqlite. I am probably missing something but I couldn’t figure out what exactly.
Console Output
>> date = Task.first.date
=> Tue, 16 Aug 2011
>> Task.find(:all, :conditions => {:date => date})
=> []
>> Task.find(:all, :conditions => ['date = ?', date])
=> []
>> Task.find(:all, :conditions => ['date IS ?', date])
=> []
Schema
create_table "tasks", :force => true do |t|
t.date "date"
end
This is not a complete answer but hopefully will put your mind at ease that your syntax is correct
I knocked up a quick app to test this and all your methods of retrieval work. This was with an SQLite database also and there were no errors.
My schema.rb: