This project is archived and is in readonly mode.
select() ignored in subquery when querying with count()
-
gnufied
- Assigned user set to Aaron Patterson
- Tag set to arel activerecord bug rails3, verified
Verified. The problem does exist (and returned value of count can be potentially wrong).
I am trying to get a patch, but in the meanwhile assigning to tenderlove.
-
gnufied
Hmm, the problem seems to have been fixed on master (Both Arel and Rails). In which case, the fix should be backported to Rails-3.0 stable?
-
Aaron Patterson
- State changed from new to resolved
- Importance changed from to Low
This should be fixed with ARel 2.0, so the 3-0-stable branch should work now.