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

Issue saving a document in the shell when the document contains a reference with the element [$db]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.9.0
    • 1.9.1
    • Shell
    • None
    • ALL

    Description

      The following code results in this error.

      db.sellers.find().forEach(function(seller)

      { db.sellers.save(seller); }

      );

      uncaught exception: field names cannot start with $ [$db]

      I have signed the contributor agreement and issued a pull request for the patch to resolve this issue.
      https://github.com/mongodb/mongo/pull/46

      It affects versions mongo 1.8 and higher.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            spf13 Steve Francia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: