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

undefined is converted to null in javascript shell

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Current behavior:

      mongos> db.undef.insert(

      {"a":undefined}

      )
      mongos> db.undef.find()

      { "_id" : ObjectId("50abeca4901eeed1753debef"), "a" : null }

      mongos>

      This causes exportimport1.js to fail.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sverch Shaun Verch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: