$ cat blah.csv
name,location
"Bob","Somewhere, Out There"
"Chris","Right here"
$ mongoimport -h localhost -d testing -c testing --headerline -type csv --file blah.csv
connected to: localhost
imported 3 objects
$ mongo testing
MongoDB shell version: 1.6.5
connecting to: testing
> db.testing.find()
note garbage "field2" field/value in second record, coming somehow from value with a comma in first record
- is related to
-
SERVER-1097 mongoimport / export should adhere to CSV spec
- Closed