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

Misformed update command options

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.4.8, 2.4.10
    • Shell
    • None
    • ALL
    • Hide

      With a prepopulated collection of > 1 documents execute the following command:

      db.my_collection.update({},{$set:{field_name:"new_value"}}, multi=true)

      now check the documents in the collection. None will have been updated

      Show
      With a prepopulated collection of > 1 documents execute the following command: db.my_collection.update({},{$set:{field_name:"new_value"}}, multi=true) now check the documents in the collection. None will have been updated

    Description

      If the options section of an update command is misformed the update fails and no error message is shown.

      If an equals sign is used in the place of a colon for the update options values, the update fails to execute silently.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mark@knows.is Mark Unsworth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: