[pgjdbc/pgjdbc] 8ad48a: fix: preserve unquoted unicode whitespace in array...

From: Brett Okken <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 8ad48a: fix: preserve unquoted unicode whitespace in array...
Date: 2020-08-11 11:55:02
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/4fef49-8ad48a@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 8ad48a611f0622f75e896f79d6a0a733ef3d1028
https://github.com/pgjdbc/pgjdbc/commit/8ad48a611f0622f75e896f79d6a0a733ef3d1028
Author: Brett Okken <brett(dot)okken(dot)os(at)gmail(dot)com>
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 <sitnikov(dot)vladimir(at)gmail(dot)com>
Co-authored-by: BO8979 <BO8979(at)W1971362(dot)northamerica(dot)cerner(dot)net>

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2020-08-11 18:09:46 [pgjdbc/pgjdbc] c80add: remove postgresql-jre6 and postgresql-jre7 project...
Previous Message Brett Okken 2020-08-10 20:00:08 [pgjdbc/pgjdbc] 4fef49: fix: preserve unquoted unicode whitespace in array...