[SERVER-13557] Incorrect negation of $elemMatch value in 2.6 Created: 11/Apr/14 Updated: 11/Jul/16 Resolved: 14/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.6.0 |
| Fix Version/s: | 2.6.1, 2.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Thomas Zahn | Assignee: | David Storch |
| Resolution: | Done | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
> db.serverBuildInfo() |
||
| Issue Links: |
|
|||||||||||||||||||||
| Operating System: | ALL | |||||||||||||||||||||
| Backport Completed: | ||||||||||||||||||||||
| Steps To Reproduce: |
This should now show all 4 documents, but it does no longer (as it used to in 2.4):
Just checking that _id isn't all of a sudden handled as array
It isn't. Note that for fields other than "_id" it still seems to work:
|
|||||||||||||||||||||
| Participants: | ||||||||||||||||||||||
| Description |
|
Issue Status as of April 15, 2014 ISSUE SUMMARY USER IMPACT WORKAROUNDS RESOLUTION AFFECTED VERSIONS PATCHES Original descriptionA negated $elemMatch value should return all results for which the field is not an array. This behavior is incorrect in 2.6.0 if the field is indexed:
Original description:
|
| Comments |
| Comment by Githook User [ 14/Apr/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: (cherry picked from commit 45cf39c95d0fdfcb15b483e2d50b392a95735043) |
| Comment by Githook User [ 14/Apr/14 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: |