Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i8kX6-0006Qi-He for pgsql-jdbc@arkaria.postgresql.org; Fri, 13 Sep 2019 12:18:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i8kX4-0005oL-QI for pgsql-jdbc@arkaria.postgresql.org; Fri, 13 Sep 2019 12:18:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i8kX4-0005o0-GL for pgsql-jdbc@lists.postgresql.org; Fri, 13 Sep 2019 12:18:34 +0000 Received: from out-9.smtp.github.com ([192.30.254.192]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i8kX1-000058-Fs for pgsql-jdbc@lists.postgresql.org; Fri, 13 Sep 2019 12:18:33 +0000 Received: from github-lowworker-56fcc46.va3-iad.github.net (github-lowworker-56fcc46.va3-iad.github.net [10.48.102.32]) by smtp.github.com (Postfix) with ESMTP id A12AB261648 for ; Fri, 13 Sep 2019 05:18:30 -0700 (PDT) Date: Fri, 13 Sep 2019 05:18:30 -0700 From: Sehrope Sarkuni To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 3df32f: fix: Revert inet default Java type to PGObject and... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.