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]

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.9.0
    • Fix Version/s: 1.9.1
    • Component/s: Shell
    • Labels:
      None
    • Operating System:
      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

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

              Dates

              Created:
              Updated:
              Resolved: