Skip to content

Commit

Permalink
Bugfix: mongoexport now outputs full strings in CSV mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Price committed Jul 8, 2012
1 parent 17e5e15 commit 79b358c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo/tools/export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class Export : public Tool {
return object.toString(false);
case String:
case Symbol:
return csvEscape(object.toString(false), true);
return csvEscape(object.toString(false, true), true);
case Object:
return csvEscape(object.jsonString(Strict, false));
case Array:
Expand Down

1 comment on commit 79b358c

@joshprice
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, BSONObj::toString() does not output full string value https://github.com/mongodb/mongo/blob/master/src/mongo/bson/bsonobj.h#L146

Please sign in to comment.