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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.9.2
    • Component/s: Operations
    • Environment:
      MongoDB 3.2.1 under Ubuntu 15.10

      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

        1. bu.png
          35 kB
          Zeioth

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

              Created:
              Updated:
              Resolved: