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

method/operation to determine if a write error is a duplicate key error

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • 0.3.0
    • None
    • None

    Description

      this might just be a usability consideration, but I can't find anyway to determine or check if an error from an insert or an upsert is a duplicate key error, without (presumably, parsing the string form of the error, which looks to be derived from what the server transmits.

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            sam.kleinman Sam Kleinman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: