From commits-return-64989-archive-asf-public=cust-asf.ponee.io@commons.apache.org Sat Oct 20 18:07:57 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 99DB2180668 for ; Sat, 20 Oct 2018 18:07:56 +0200 (CEST) Received: (qmail 99898 invoked by uid 500); 20 Oct 2018 16:07:55 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 99889 invoked by uid 99); 20 Oct 2018 16:07:55 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Oct 2018 16:07:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 85069DFC43; Sat, 20 Oct 2018 16:07:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ggregory@apache.org To: commits@commons.apache.org Message-Id: <126aa1e8322440e8a6aabb007880e150@git.apache.org> X-Mailer: ASF-Git Admin Mailer 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 +0000 (UTC) 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 Authored: Sat Oct 20 10:07:51 2018 -0600 Committer: Gary Gregory 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());