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

ObjectID should be quoted in bsoncore.Value's String() method

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.1
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      In x/bsonx/bsoncore/value.go, the function func (v Value) String() string writes ObjectedIDs as {{

      {"$oid":%s}

      }}, but the %s should be quoted, like this: {{

      {"$oid":"%s"}

      }}.

            Assignee:
            matthew.chiaravalloti@mongodb.com Matthew Chiaravalloti
            Reporter:
            matthew.chiaravalloti@mongodb.com Matthew Chiaravalloti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: