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

formats.
This commit is contained in:
Gary Gregory 2018-10-20 10:07:51 -06:00
parent 53ead3ffe8
commit 3c5d7e07e0
1 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ public class CSVFormatTest {
final CSVFormat cSVFormat = CSVFormat.POSTGRESQL_TEXT; final CSVFormat cSVFormat = CSVFormat.POSTGRESQL_TEXT;
assertEquals('\"', (char)cSVFormat.getEscapeCharacter()); assertEquals('\\', (char)cSVFormat.getEscapeCharacter());
assertFalse(cSVFormat.getIgnoreSurroundingSpaces()); assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
assertFalse(cSVFormat.getTrailingDelimiter()); assertFalse(cSVFormat.getTrailingDelimiter());
@ -417,7 +417,7 @@ public class CSVFormatTest {
assertEquals('\"', (char)cSVFormat.getQuoteCharacter()); assertEquals('\"', (char)cSVFormat.getQuoteCharacter());
assertTrue(cSVFormat.isNullStringSet()); assertTrue(cSVFormat.isNullStringSet());
assertEquals('\"', (char)cSVFormat.getEscapeCharacter()); assertEquals('\\', (char)cSVFormat.getEscapeCharacter());
assertFalse(cSVFormat.getIgnoreSurroundingSpaces()); assertFalse(cSVFormat.getIgnoreSurroundingSpaces());
assertFalse(cSVFormat.getTrailingDelimiter()); assertFalse(cSVFormat.getTrailingDelimiter());