[CDRIVER-845] Documents in array sent with insert command are all index 0 Created: 15/Sep/15 Updated: 19/Oct/16 Resolved: 16/Sep/15 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | Bulk API, libbson |
| Affects Version/s: | None |
| Fix Version/s: | 1.2-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | A. Jesse Jiryu Davis | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
An array in BSON is just a document with the keys "0", "1", "2", and so on. When sending an array of documents with the "insert" command, the driver should generate BSON like:
Instead it sends:
The server accepts this, but it's not up to spec. |
| Comments |
| Comment by Githook User [ 11/Jan/16 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: An array in BSON is just a document with the keys "0", "1", "2", and so |
| Comment by Githook User [ 26/Oct/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: An array in BSON is just a document with the keys "0", "1", "2", and so |
| Comment by Githook User [ 16/Sep/15 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: An array in BSON is just a document with the keys "0", "1", "2", and so |
| Comment by A. Jesse Jiryu Davis [ 15/Sep/15 ] |
|
"update" and "delete" commands are sent with properly-formatted BSON arrays. |