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

csv exported representation of "null" should be a blank string

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None

      to reproduce, try doing
      db.test.insert(

      {x:null}

      )

      then
      mongoexport --csv --fields x -c test

      the output looks like:
      a
      %!s(<nil>)

            Assignee:
            mikeo@mongodb.com Michael O'Brien
            Reporter:
            mikeo@mongodb.com Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: