Skip to content

Commit 60b1c8e

Browse files
[CSV-208] Fix escape character for POSTGRESQL_TEXT and POSTGRESQL_CSV
formats.
1 parent 3ddfb40 commit 60b1c8e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,10 +476,10 @@ public CSVFormat getFormat() {
476476
* </p>
477477
* <ul>
478478
* <li>withDelimiter('\t')</li>
479+
* <li>withEscape('\\')</li>
480+
* <li>withIgnoreEmptyLines(false)</li>
479481
* <li>withQuote('"')</li>
480482
* <li>withRecordSeparator('\n')</li>
481-
* <li>withIgnoreEmptyLines(false)</li>
482-
* <li>withEscape('\\')</li>
483483
* <li>withNullString("\\N")</li>
484484
* <li>withQuoteMode(QuoteMode.ALL_NON_NULL)</li>
485485
* </ul>
@@ -492,7 +492,7 @@ public CSVFormat getFormat() {
492492
// @formatter:off
493493
public static final CSVFormat POSTGRESQL_TEXT = DEFAULT
494494
.withDelimiter(TAB)
495-
.withEscape(DOUBLE_QUOTE_CHAR)
495+
.withEscape(BACKSLASH)
496496
.withIgnoreEmptyLines(false)
497497
.withQuote(DOUBLE_QUOTE_CHAR)
498498
.withRecordSeparator(LF)

0 commit comments

Comments
 (0)