From 01a2558222c9ae194602ea947db1b18c7e0b08fa Mon Sep 17 00:00:00 2001 From: AngeloBusato Date: Thu, 27 Apr 2017 12:44:13 +0200 Subject: [PATCH] issue #388 - use export config quotes in CSVWriter --- src/main/java/apoc/export/csv/CsvFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/apoc/export/csv/CsvFormat.java b/src/main/java/apoc/export/csv/CsvFormat.java index 33af82ad75..549390978a 100644 --- a/src/main/java/apoc/export/csv/CsvFormat.java +++ b/src/main/java/apoc/export/csv/CsvFormat.java @@ -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();