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

Wrong behavior for bulk Upsert().UpdateOne filtering with "created_on"

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.2
    • Operations
    • MongoDB 3.2.1 under Ubuntu 15.10

    Description

      Hi, I think there's a problem in .Upsert().UpdateOne().
      When you filter documents created today, using "created_on", it will always insert a new document instead of update the desired field.

      Short code:
      http://pastebin.com/jT0cpdGg

      Attachments

        1. bu.png
          bu.png
          35 kB

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: