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]

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.9.1
    • Affects Version/s: 1.9.0
    • Component/s: Shell
    • None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: