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

call deleteOne with an array in shell

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.5.3
    • 3.2.10
    • Shell
    • None
    • macOSX (installed with brew)
    • Fully Compatible
    • OS X
    • Platforms 2016-10-31, Platforms 2017-02-13
    • 0

    Description

      db.mycoll.deleteOne([])
      2016-10-13T22:51:09.884+0200 E QUERY    [thread1] TypeError: err.hasWriteErrors is not a function :
      DBCollection.prototype.deleteOne@src/mongo/shell/crud_api.js:328:13
      @(shell):1:1
      

      I accidentally ran deleteOne with an array. When you do that you should get an error, but I think this is an internal bug in the shell.

      BTW: I couldn't find the right project for the shell, so I filed it under tools.

      Attachments

        Activity

          People

            jonathan.reams@mongodb.com Jonathan Reams
            jaap@q42.nl Jaap Taal
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: