[SERVER-1854] $type not working properly with arrays Created: 27/Sep/10 Updated: 15/Nov/21 Resolved: 27/Sep/10 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 1.6.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andreas Jung | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
> db.foo.find() { "_id" : ObjectId("4ca0200bfe2f0f60296390db"), "a" : 2 } { "_id" : ObjectId("4ca0200ffe2f0f60296390dc"), "a" : "3" } { "_id" : ObjectId("4ca0204afe2f0f60296390dd"), "a" : [ 1, 2, 3, 4 ] } { "_id" : ObjectId("4ca02058fe2f0f60296390de"), "a" : [ "a", "b" ] }Wrong: (should not return the 2nd hit) Wrong: (should not return the 2nd hit) Wrong: Returns nothing but should return the rows with the arrays. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 27/Sep/10 ] |
|
See |