[SERVER-5203] find BinData without new Shell Created: 05/Mar/12 Updated: 15/Aug/12 Resolved: 05/Mar/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Chris Harris | 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 |
|
Create simple bin data: > db.uuid.save({_id : new BinData(3, "Y0pfMW5Mb2pT1uz5+u1Ckw==")}) Correct: An example that correctly returns the document: > db.uuid.find({_id : new BinData(3, "okiGox+XG637qdDet1rinw==")}) Error: If I forget the "new" then instead of zero docs I get all records: > db.uuid.find({_id : BinData(3, "okiGox+XG637qdDet1rinw==")}) { "_id" : BinData(3,"Y0pfMW5Mb2pT1uz5+u1Ckw==") } { "_id" : BinData(3,"okiGox+XG637qdDet1rinw==") } |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 05/Mar/12 ] |