[SERVER-3690] don't count csv headerline when reporting objects imported Created: 25/Aug/11  Updated: 11/Jul/16  Resolved: 06/Oct/11

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 2.1.0

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Brandon Diamond
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Operating System: ALL
Participants:

 Description   

For the same file with 1 header line and 3 data fields:

$ ./mongoimport --type csv --headerline -c test -d test --drop /tmp/test.csv
connected to: 127.0.0.1
dropping: test.test
imported 4 objects

$ ./mongoimport --type csv -c test -d test --drop /tmp/test.csv --fields foo,bar,baz,qux
connected to: 127.0.0.1
dropping: test.test
imported 4 objects



 Comments   
Comment by auto [ 06/Oct/11 ]

Author:

{u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}

Message: SERVER-3690: Header excluded from CSV import objcount
Branch: master
https://github.com/mongodb/mongo/commit/3db92ac2093712967fa73da5a23ba8fd8a2e11d9

Generated at Thu Feb 08 03:03:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.