Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29699

upsert:true with a Dotted _id Query should throw error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • ALL

    Description

      According to: https://docs.mongodb.com/manual/reference/method/db.collection.update/#mongodb30-upsert-id

      This query:

      db.collection.update( { "_id.name": "Robert Frost", "_id.uid": 0 },
         { "categories": ["poet", "playwright"] },
         { upsert: true } )
      

      Should throw an error in mongodb > 3.0, but at least in mongo 3.2.6 I get no errors when executing this query.

      Attachments

        Activity

          People

            charlie.swanson@mongodb.com Charlie Swanson
            seba.kerckhof@gmail.com seba kerckhof
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: