[SERVER-2258] empty array matches itself without index, but not with index Created: 20/Dec/10 Updated: 12/Jul/16 Resolved: 01/Aug/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | None |
| Fix Version/s: | 1.9.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aaron Staple | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
> db.c.drop(); ); ); ); ).hint( {$natural:1} ); { "_id" : ObjectId("4d0fba6fc6237b412f53adeb"), "a" : [ ] }> db.c.find( {a:[]}).hint( {a:1}); |
| Comments |
| Comment by auto [ 31/Jul/11 ] |
|
Author: {u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by auto [ 31/Jul/11 ] |
|
Author: {u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by Aaron Staple [ 07/Jun/11 ] |
|
Author: {u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |
| Comment by Aaron Staple [ 25/Mar/11 ] |
|
When we fix this we should fix db.c.find( {a:{$in:[[]]}} ).hint( {a:1}) as well |