Misformed update command options

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.4.8, 2.4.10
    • Component/s: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Mark Unsworth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: