
Unexpected behavior when count is used with -
Reported by Deleted User | November 12th, 2010 @ 08:18 PM | in 1.1.1
suppose a and b are collections return by finders on a class A:
suppose (a - b).count == 5
suppose we have a chained finder which returns only a subset of items of A:
(a - b).my_filter.count should be <= (a - b).count, but it is actually larger.
See the test case here:
Comments and changes to this ticket
-
-
Jonathan Stott (namelessjon) November 14th, 2010 @ 01:20 PM
- State changed from new to confirmed
- Milestone set to 1.1
- Milestone order changed from 196307 to 0
I've slightly fixed the example script so it won't give a false negative when the bug is fixed, and also to use a memory DB:
-
Robert Sköld November 15th, 2010 @ 03:51 PM
I have a similar issue and created a test case for it here: https://gist.github.com/700986
-
Dan Kubb (dkubb) March 16th, 2011 @ 10:41 PM
- Milestone changed from 1.1 to 1.1.1
- Milestone order changed from 9 to 0
-
Piotr Solnica (solnic) May 17th, 2011 @ 02:15 AM
- Tag set to dm-aggregates
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »