[pgjdbc/pgjdbc] 3df32f: fix: Revert inet default Java type to PGObject and...

Sehrope Sarkuni <[email protected]> Fri, 13 Sep 2019 05:18:30 -0700
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]>
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 3df32f9bf9da38cc5f0fbb212a3034e4634dd3c7
      https://github.com/pgjdbc/pgjdbc/commit/3df32f9bf9da38cc5f0fbb212a3034e4634dd3c7
  Author: Sehrope Sarkuni <[email protected]>
  Date:   2019-09-13 (Fri, 13 Sep 2019)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc4/jdbc41/GetObjectTest.java

  Log Message:
  -----------
  fix: Revert inet default Java type to PGObject and handle values with net masks (#1568)

Reverts inet type columns to return their value as a PGObject rather than parsing
them as InetAddress values. This ensures that the mask value is not lost.

Also corrects the getObject(..., InetAddress.class) handling to split out the net mask
and return only the address portion.