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.

Casper's latest activity

Sunday, August 09 2009
2949 Rails 2.3.3 ActiveRecord generates invalid SQL conditions for named_scope wit... was updated in Ruby on Rails
  • Casper
    • Tag changed from 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql to 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql, verified
    by Casper at 8:35 PM

    Tristan updated ticket at same time. Verified his patch works on my machine. Reapplied his tags. Disregard my previous post :-/

    Thanks for the fix.

  • Casper
    • Tag changed from 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql, verified to 2.3.3, activerecord, bugmash, conditions, joins, named_scope, sql
    by Casper at 8:25 PM

    Ok since you found the weirdness with the first letter in the class name I'll tell you something even more strange.

    I didn't post it earlier since I thought per...

Saturday, July 25 2009
2949 Rails 2.3.3 ActiveRecord generates invalid SQL conditions for named_scope wit... was updated in Ruby on Rails
  • Casper
    Casper commented at 8:38 PM

    Here's a simplified model and migration. Making the problem easily reproducible:

    class Widget < ActiveRecord::Base
       belongs_to :window


    named_scope :en...
Friday, July 24 2009
2949 Rails 2.3.3 ActiveRecord generates invalid SQL conditions for named_scope wit... was created in Ruby on Rails
  • Casper
    Casper created the ticket at 4:54 PM

    I just upgraded from Rails 2.2.2 to 2.3.3 and now ActiveRecord generates invalid SQL for named_scopes with :conditions + :joins.

    Example extracted from my curre...