Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-740

mongoimport converts ints to doubles

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • mongoimport
    • None

    Description

      While taking the final exam of M101P class, I noticed the validate script was broken by the use of doubles rather than ints.

      Import this JSON document:

      { "_id" : 998, "images" : [ 2491, 2617, 4830] }

      and the items in the images array get converted to doubles.
      Geert checked and 2.6 doesn't do this. We think this is not desirable?

      Attachments

        Activity

          People

            shraya.ramani Shraya Ramani
            martin.bligh Martin Bligh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: