Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-214

FindAndModify and FindAndRemove should not throw an exception when no matching document is found

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.1
    • 1.0
    • None
    • None

    Description

      The server returns an error for the findAndModify command when no matching document is found, causing the driver to throw an exception. The server is going to be changed some day to no return an error, but in the meantime the driver should be changed to ignore this particular error and not throw an exception.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: