Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

find a false boolean fails

#16

This fails:
ReportPageView.find_all_by_is_processed(false)

the "false" value not being appended to the SELECT statement...

Aws::AwsError: InvalidQueryExpression: The specified query expression syntax is not valid...
Action=Select&SelectExpression=SELECT%20%2A%20FROM%20%60development_report_page_views%60%20WHERE%20is_processed%3D&SignatureMethod=

find by a true value works fine.

Reported by chris finne · April 6th, 2010 @ 03:02 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. chris finne
    chris finne

    It also fails in the same way with find(:all, :conditions) where conditions is a hash or an array.

    I think I've traced it to this method in the aws gem: right_sdb_interface.rb

    def escape(value)
      %Q{'#{value.to_s.gsub(/(['\\])/){ "\\#{$1}" }}'} if value
    end
    

    the value is false, so nothing is returned.

    April 6th, 2010 @ 03:26 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.