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

mongoimport converts ints to doubles

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongoimport
    • None

      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?

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

              Created:
              Updated:
              Resolved: