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

MongoExport: exporting documents with double datatypes

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.0.1
    • Component/s: mongoexport
    • None
    • Environment:
      Windows 7
    • Not Needed

      Steps to reproduce:
      1) Create any document in any collection that contain double value. E.g.

      { Value: 3.0 }

      2) Run mongoexport to export this collection
      Expected result:
      You should get document with double value

      { Value: 3.0 }

      Actual result:
      You get document with int value

      { Value: 3 }

      P.S. This issue is critical when you export and then import some documents with double values that can be "integer". In this case you'll get transformation of you "integer" double values to interger values. So, will be changed data type of values.

            Assignee:
            shraya.ramani Shraya Ramani
            Reporter:
            antonytm Anton Tishchenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: