commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject commons-csv git commit: [CSV-208] Fix escape character for POSTGRESQL_TEXT and POSTGRESQL_CSV formats.
Date Sat, 20 Oct 2018 16:07:55 GMT
Repository: commons-csv
Updated Branches:
  refs/heads/master 53ead3ffe -> 3c5d7e07e


[CSV-208] Fix escape character for POSTGRESQL_TEXT and POSTGRESQL_CSV
formats.

Project: http://git-wip-us.apache.org/repos/asf/commons-csv/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-csv/commit/3c5d7e07
Tree: http://git-wip-us.apache.org/repos/asf/commons-csv/tree/3c5d7e07
Diff: http://git-wip-us.apache.org/repos/asf/commons-csv/diff/3c5d7e07

Branch: refs/heads/master
Commit: 3c5d7e07e02e769043d084bf906bbc4c6932ab1c
Parents: 53ead3f
Author: Gary Gregory <ggregory@rocketsoftware.com>
Authored: Sat Oct 20 10:07:51 2018 -0600
Committer: Gary Gregory <ggregory@rocketsoftware.com>
Committed: Sat Oct 20 10:07:51 2018 -0600

----------------------------------------------------------------------
 src/test/java/org/apache/commons/csv/CSVFormatTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-csv/blob/3c5d7e07/src/test/java/org/apache/commons/csv/CSVFormatTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/csv/CSVFormatTest.java b/src/test/java/org/apache/commons/csv/CSVFormatTest.java
index 6a96c7c..641ae50 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());


Mime
View raw message