This project is archived and is in readonly mode.

#6385 new
jp.blanco

You can't exclude distinct when you have a count and at least one include in your query

Reported by jp.blanco | February 7th, 2011 @ 07:21 PM

I want to be able to exclude the distinct statement in one of my queries, but I have a count operation and an outer join.
If you take a look at https://github.com/rails/rails/blob/master/activerecord/lib/active_... (line 170 and 177) you can see that is impossible for me to do this.

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages