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 1k5Dxy-0005Xs-JI for pgsql-jdbc@arkaria.postgresql.org; Mon, 10 Aug 2020 20:00:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5Dxx-0004m0-H2 for pgsql-jdbc@arkaria.postgresql.org; Mon, 10 Aug 2020 20:00:17 +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 1k5Dxx-0004lt-3Q for pgsql-jdbc@lists.postgresql.org; Mon, 10 Aug 2020 20:00:17 +0000 Received: from out-14.smtp.github.com ([192.30.254.197]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Dxq-0005wj-8J for pgsql-jdbc@lists.postgresql.org; Mon, 10 Aug 2020 20:00:15 +0000 Received: from github-lowworker-292e294.va3-iad.github.net (github-lowworker-292e294.va3-iad.github.net [10.48.102.70]) by smtp.github.com (Postfix) with ESMTP id 5630F7A0039 for ; Mon, 10 Aug 2020 13:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1597089608; bh=44ZG56MQheGmrdbdVy1cZow6G5Z+e9yF9GHjqcUSgrs=; h=Date:From:To:Subject:From; b=lRZDEzxqeXg3kwFbXNL+jK7RV+leWqIDwE8bxfM/d8/R2ntxGM+fRCjjsy3bYKdYU Sp5uQqNpu8ZXtrp5OXoG+km0UC4whKsma/GTZWXYK7othIuWbXqDyas1yzSypzjy6+ OCDbpjlPAdg2sHvlgFd5tz5DqgpC65LkBH8Xj9Lc= Date: Mon, 10 Aug 2020 13:00:08 -0700 From: Brett Okken To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 4fef49: 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: 4fef49d3e343d8e98fd5533fc35f73b9e7a8fcb5 https://github.com/pgjdbc/pgjdbc/commit/4fef49d3e343d8e98fd5533fc35f73b9e7a8fcb5 Author: Brett Okken Date: 2020-08-10 (Mon, 10 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 * fix: don't ignore unquoted non-ascii whitespace 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 * fix: don't ignore unquoted non-ascii whitespace add test showing inner white spaces not dropped on unquoted strings by backend. Co-authored-by: Vladimir Sitnikov Co-authored-by: BO8979