ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.6.0
    • Component/s: None
    • None
    • Go Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Detailed steps to reproduce the problem?

      Repro: https://github.com/10gen/go-driver-tools/blob/main/preston/repros/2.9.2/godriver_4190_test.go
      Public Repro: https://gist.github.com/prestonvasquez/fc120e56dc8116f3a77739ca11cb6c5d

      Definition of done: what must be done to consider the task complete?

      The documentation for SingleResult.Decode states

      If there was an error from the operation that created this DistinctResult, that error will be returned.

      We need to add a guard to SingleResult.Decode:

      if dr.err != nil {
          return dr.err
      }
      

      The exact Go version used, with patch level:

      NA

      The exact version of the Go driver used:

      2.9.2

      Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.

      NA

      The operating system and version (e.g. Windows 7, OSX 10.8, ...)

      NA

      Security Vulnerabilities

      NA

            Assignee:
            Unassigned
            Reporter:
            Pratham Bhatnagar (EXT)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: