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

mongoimport converts ints to doubles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongoimport
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: