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

way to force decoding ints into string

    • Type: Icon: New Feature New Feature
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:

      I have following field in struct:

      Codes map[string]string `bson:"codes"`

      Sometimes value of this map is  numberLong and got an error:

      cannot decode 64-bit integer into a string type
      

      With mgo driver this case is ok, but in official driver I can't load this collection at all.

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            abonec Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: