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

Поиск
Список
Период
Сортировка
Искать

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

От:
Sehrope Sarkuni <noreply@github.com>
Дата:
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: 3df32f9bf9da38cc5f0fbb212a3034e4634dd3c7
      https://github.com/pgjdbc/pgjdbc/commit/3df32f9bf9da38cc5f0fbb212a3034e4634dd3c7
  Author: Sehrope Sarkuni 
  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.




FAQ