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

convertValueToElem should copy the attached *bson.Document

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 0.0.3
    • 0.0.2
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: