[CSV-208] Fix escape character for POSTGRESQL_TEXT and POSTGRESQL_CSV
formats.
This commit is contained in:
parent
53ead3ffe8
commit
3c5d7e07e0
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue