From: | Vladimir Sitnikov <noreply(at)github(dot)com> |
---|---|
To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
Subject: | [pgjdbc/pgjdbc] c745f4: fix: handle nulls when the following clasess are u... |
Date: | 2020-08-28 19:40:25 |
Message-ID: | pgjdbc/pgjdbc/push/refs/heads/release/42.2/5e4bbc-c745f4@github.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Branch: refs/heads/release/42.2
Home: https://github.com/pgjdbc/pgjdbc
Commit: c745f4e549b119b8332ef48bbc8b8525ccba0f21
https://github.com/pgjdbc/pgjdbc/commit/c745f4e549b119b8332ef48bbc8b8525ccba0f21
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2020-08-28 (Fri, 28 Aug 2020)
Changed paths:
M CHANGELOG.md
M pgjdbc/src/main/java/org/postgresql/geometric/PGbox.java
M pgjdbc/src/main/java/org/postgresql/geometric/PGcircle.java
M pgjdbc/src/main/java/org/postgresql/geometric/PGline.java
M pgjdbc/src/main/java/org/postgresql/geometric/PGlseg.java
M pgjdbc/src/main/java/org/postgresql/geometric/PGpath.java
M pgjdbc/src/main/java/org/postgresql/geometric/PGpoint.java
M pgjdbc/src/main/java/org/postgresql/geometric/PGpolygon.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
M pgjdbc/src/main/java/org/postgresql/util/PGInterval.java
M pgjdbc/src/main/java/org/postgresql/util/PGmoney.java
M pgjdbc/src/main/java/org/postgresql/util/PGobject.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGObjectGetTest.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc2/PGObjectSetTest.java
Log Message:
-----------
fix: handle nulls when the following clasess are used: PGbox, PGcircle, PGline, PGlseg, PGpath, PGpoint, PGpolygon, and PGmoney
1) PGobject.setValue(null) can be used to set the wrapped value to null
Note: previously the sub-classes of PGobject threw NPE for setValue(null)
2) Return null from `getValue` in case the typed null is received from the database
3) Assume PGBinaryObject#lengthInBytes == 0 means the value should be set as null when sending data to the database
see #1870
From | Date | Subject | |
---|---|---|---|
Next Message | Vladimir Sitnikov | 2020-08-28 21:45:35 | [pgjdbc/pgjdbc] 0308ff: chore: fix compileJava7 and compileJava6 |
Previous Message | Robert Haas | 2020-08-28 13:30:46 | Re: Support for OUT parameters in procedures |