Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-321

convertValueToElem should copy the attached *bson.Document

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.3
    • Affects Version/s: 0.0.2
    • Component/s: None
    • None

      The function bson.convertValueToElem does not copy the Value.d property, which means that documents and arrays are not properly converted. When marshaling is attempted, an error of Too Small is returned.

      To fix this, copy the Value.d property to the newly created value.

            Assignee:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: