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

Overriding the type map entry for embedded document does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 1.3.0
    • None
    • None

    Description

      If RegisterTypeMapEntry is used to decode into bson.M instead of bson.D for empty interface, the values still decode as bson.D.

      Also, we should fix empty interface decoding to first check for ancestor information and then for type map entries. This will allow us to remove the warning from the RegisterTypeMapEntry documentation about registering a mapping for bsontype.EmbeddedDocument.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: