[CDRIVER-142] inserted 'undefined' field what I didn't insert while object inserting Created: 25/May/12 Updated: 11/Sep/19 Resolved: 25/May/12 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | None |
| Affects Version/s: | 0.4 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Seunghoon Park | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
windows, windows 7, 64bit |
||
| Description |
|
hi, I'm using this library to connect to MongoDb in my project. bson bs; after success to insert, when I check that data in the mongo shell, show dbs; use MyTestDb db.Test1.findOne(); thanks! -surym |
| Comments |
| Comment by Kyle Banker [ 25/May/12 ] |
|
Yes. |
| Comment by Seunghoon Park [ 25/May/12 ] |
|
oh, thanks for comments. |
| Comment by Kyle Banker [ 25/May/12 ] |
|
The issue is that arrays are zero-indexed. So when you call bson_append_start_object(), you must start with "0", not "1" as you've done in your example. |