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

Overriding the type map entry for embedded document does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None
    • Case:

      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

            Assignee:
            divjot.arora Divjot Arora
            Reporter:
            divjot.arora Divjot Arora
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: