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

way to force decoding ints into string

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • BSON

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: