Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Ss1-00070V-UO for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Aug 2020 11:55:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5Ss0-0002ys-Tl for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Aug 2020 11:55:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Ss0-0002yl-Mu for pgsql-jdbc@lists.postgresql.org; Tue, 11 Aug 2020 11:55:08 +0000 Received: from out-17.smtp.github.com ([192.30.252.200]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Srv-0005sR-Rt for pgsql-jdbc@lists.postgresql.org; Tue, 11 Aug 2020 11:55:07 +0000 Received: from github-lowworker-b19c547.va3-iad.github.net (github-lowworker-b19c547.va3-iad.github.net [10.48.17.66]) by smtp.github.com (Postfix) with ESMTP id B4D215C0E2A for ; Tue, 11 Aug 2020 04:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1597146902; bh=b9I4Ews1JRq+2VpxOcgms9jtgEAl36dsXKx1qOxwzeg=; h=Date:From:To:Subject:From; b=hOG/bRgvdzDBAARfGwzKbKSQsKklRec/B+HnGSvMEq9snyDEn4aZQo7mZ8D0XT88v vLv9+DCUzz9q9kNm2msNDltAlDl7xuE8SnV+MRab8A3tDeuXEkX5OX/Y2wm/2TC7n6 Z/e8I32+0tc7m5t+cm6Afai5EBa6bP0T3NiaXfXw= Date: Tue, 11 Aug 2020 04:55:02 -0700 From: Brett Okken To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 8ad48a: fix: preserve unquoted unicode whitespace in array... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 8ad48a611f0622f75e896f79d6a0a733ef3d1028 https://github.com/pgjdbc/pgjdbc/commit/8ad48a611f0622f75e896f79d6a0a733ef3d1028 Author: Brett Okken Date: 2020-08-11 (Tue, 11 Aug 2020) Changed paths: M CHANGELOG.md M pgjdbc/src/main/java/org/postgresql/core/Parser.java M pgjdbc/src/main/java/org/postgresql/jdbc/ArrayDecoding.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ArrayTest.java Log Message: ----------- fix: preserve unquoted unicode whitespace in array literals (#1266) * fix: don't ignore unquoted non-ascii whitespace The postgresql backend only quotes ascii whitespace. https://github.com/pgjdbc/pgjdbc/issues/1257 add comment to existing isSpace method change from switch to chained ORs * test: fix comment in ArrayTest.testDirectFieldString * fix: revert spaces in array literal * add changelog entry add test showing inner white spaces not dropped on unquoted strings by backend. Co-authored-by: Vladimir Sitnikov Co-authored-by: BO8979