[SERVER-523] Add getDoubleField() to BSONObj Created: 07/Jan/10  Updated: 25/Jan/10  Resolved: 25/Jan/10

Status: Closed
Project: Core Server
Component/s: Internal Client
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Doug Green Assignee: Eliot Horowitz (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File getDoubleField.patch    
Participants:

 Description   

I've added this code some time ago and realized as I upgraded to 1.2.1 that I never contributed it back. I added it because I thought it would save any space in the databse, but now I'm not sure? Would it be possible to add this to the BSON Object? Does this help at all or is it just a convenience function?



 Comments   
Comment by Eliot Horowitz (Inactive) [ 25/Jan/10 ]

don't like functions that have implicit defaults.
if you really need it - then i would add a 2nd param that is the default value

Comment by Mathias Stearn [ 07/Jan/10 ]

Moving to Core Server -> C++ Driver as this isn't related to the C driver.

Generated at Thu Feb 08 02:54:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.