[SERVER-2343] $in check for empty array does not work Created: 10/Jan/11 Updated: 12/Jul/16 Resolved: 25/Mar/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Index Maintenance |
| Affects Version/s: | 1.6.5 |
| Fix Version/s: | 1.9.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Christof Koenig | Assignee: | Aaron Staple |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 10.04.1 LTS, db version v1.6.5, pdfile version 4.5 |
||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
The following example is based on the in6.js test: t = db.jstests_in6; t.save( {key: []} ); ); ); ); function doTest() { )" ); doTest(); ); The first query using {key: []}works as expected as long as there is no index (seems to be the same as http://jira.mongodb.org/browse/SERVER-1943), but the second query {key:{$in:[[]]}} returns nothing in both cases. |
| Comments |
| Comment by auto [ 25/Mar/11 ] |
|
Author: {u'login': u'astaple', u'name': u'Aaron', u'email': u'aaron@10gen.com'}Message: |