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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc1
    • Component/s: None
    • Labels:
      None

      Description

      to reproduce, try doing
      db.test.insert(

      {x:null}

      )

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

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mpobrien Michael O'Brien
              Reporter:
              mpobrien Michael O'Brien
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: