Skip to content

Commit

Permalink
issue neo4j-contrib#388 - use export config quotes in CSVWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloBusato committed Apr 27, 2017
1 parent c86dab5 commit 01a2558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/apoc/export/csv/CsvFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ProgressInfo load(Reader reader, Reporter reporter, ExportConfig config)
@Override
public ProgressInfo dump(SubGraph graph, Writer writer, Reporter reporter, ExportConfig config) throws Exception {
try (Transaction tx = db.beginTx()) {
CSVWriter out = new CSVWriter(writer, config.getDelimChar());
CSVWriter out = config.isQuotes() ? new CSVWriter(writer,config.getDelimChar(), ExportConfig.QUOTECHAR) : new CSVWriter(writer,config.getDelimChar());
writeAll(graph, reporter, config, out);
tx.success();
writer.close();
Expand Down

0 comments on commit 01a2558

Please sign in to comment.