[pgjdbc/pgjdbc] 4fef49: 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] 4fef49: fix: preserve unquoted unicode whitespace in array...
Date: 2020-08-10 20:00:08
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/0fe766-4fef49@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: 4fef49d3e343d8e98fd5533fc35f73b9e7a8fcb5
https://github.com/pgjdbc/pgjdbc/commit/4fef49d3e343d8e98fd5533fc35f73b9e7a8fcb5
Author: Brett Okken <brett(dot)okken(dot)os(at)gmail(dot)com>
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 <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 Brett Okken 2020-08-11 11:55:02 [pgjdbc/pgjdbc] 8ad48a: fix: preserve unquoted unicode whitespace in array...
Previous Message draderaws 2020-08-09 10:23:23 [pgjdbc/pgjdbc] 0fe766: Fix header on existing Parameter Status doc page, ...