On Tuesday, November 13, 2012 3:45:30 PM UTC-5, Colin Law wrote:

> Look in log/development.log to see what the difference is in the 
> queries (which should be logged there).  Then it will probably make 
> sense. 
>
 
This is the difference:

   (0.2ms)  SELECT COUNT(*) FROM "tests" WHERE (is_billed = 'false')
 vice
   (0.2ms)  SELECT COUNT(*) FROM "tests" WHERE (is_billed = 'f')

The second form is generated from the ( :is_billed => false ) 
construction.  If I cut and paste "is_billed = 'f'" into the where clause 
then it works. I presume this is some sort of implementation issue with 
sqlite3.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/u1d6ddB865AJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to