From 3c5d7e07e02e769043d084bf906bbc4c6932ab1c Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sat, 20 Oct 2018 10:07:51 -0600 Subject: [PATCH] [CSV-208] Fix escape character for POSTGRESQL_TEXT and POSTGRESQL_CSV formats. --- src/test/java/org/apache/commons/csv/CSVFormatTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java b/src/test/java/org/apache/commons/csv/CSVFormatTest.java index 6a96c7ce..641ae500 100644 --- a/src/test/java/org/apache/commons/csv/CSVFormatTest.java +++ b/src/test/java/org/apache/commons/csv/CSVFormatTest.java @@ -390,7 +390,7 @@ public class CSVFormatTest { final CSVFormat cSVFormat = CSVFormat.POSTGRESQL_TEXT; - assertEquals('\"', (char)cSVFormat.getEscapeCharacter()); + assertEquals('\\', (char)cSVFormat.getEscapeCharacter()); assertFalse(cSVFormat.getIgnoreSurroundingSpaces()); assertFalse(cSVFormat.getTrailingDelimiter()); @@ -417,7 +417,7 @@ public class CSVFormatTest { assertEquals('\"', (char)cSVFormat.getQuoteCharacter()); assertTrue(cSVFormat.isNullStringSet()); - assertEquals('\"', (char)cSVFormat.getEscapeCharacter()); + assertEquals('\\', (char)cSVFormat.getEscapeCharacter()); assertFalse(cSVFormat.getIgnoreSurroundingSpaces()); assertFalse(cSVFormat.getTrailingDelimiter());