summaryrefslogtreecommitdiff
path: root/mongoexport/csv.go
diff options
context:
space:
mode:
authorShraya Ramani <shraya.ramani@10gen.com>2015-05-18 13:37:10 -0400
committerShraya Ramani <shraya.ramani@10gen.com>2015-05-21 15:07:21 -0400
commit88289ff1c05b876c2a9d87339fa2f7565e1069af (patch)
tree60714b7801d024ae9e144db5eee1a4d7d6bd7d5c /mongoexport/csv.go
parent7c272cf4df825ff205897aa0d7bf507ff08d0f37 (diff)
downloadmongo-88289ff1c05b876c2a9d87339fa2f7565e1069af.tar.gz
TOOLS-681 support importing integers and longs without wrapper
Diffstat (limited to 'mongoexport/csv.go')
-rw-r--r--mongoexport/csv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mongoexport/csv.go b/mongoexport/csv.go
index 3f22cc828a1..3865516d256 100644
--- a/mongoexport/csv.go
+++ b/mongoexport/csv.go
@@ -76,7 +76,7 @@ func (csvExporter *CSVExportOutput) ExportDocument(document bson.M) error {
rowOut = append(rowOut, string(buf))
}
} else {
- rowOut = append(rowOut, fmt.Sprintf("%s", fieldVal))
+ rowOut = append(rowOut, fmt.Sprintf("%v", fieldVal))
}
}
csvExporter.csvWriter.Write(rowOut)