Re: queries against CIDR fail against 8.0.3? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: queries against CIDR fail against 8.0.3?
Date
Msg-id Pine.BSO.4.61.0510062121220.12724@leary.csoft.net
Whole thread Raw
In response to Re: queries against CIDR fail against 8.0.3?  (Russell Francis <rfrancis@ev.net>)
Responses Re: queries against CIDR fail against 8.0.3?
List pgsql-jdbc

On Mon, 3 Oct 2005, Russell Francis wrote:

> I have completed what I think is a stable and well tested addition to
> the JDBC driver for PG's extended network based types inet, cidr and macaddr.
>

I haven't fully reviewed this patch, but I'm going on vacation for two
weeks tomorrow, so I wanted to at least get back to you with my initial
observations.

1) It fails to pass the tests you've provided:

     [junit] Testcase: testPGinetIPv4InvalidAddresses(org.postgresql.test.net.PGinetTest):    FAILED
     [junit] An invalid address was turned into a PGinet object: 255.255.1/23' failed.
     [junit] junit.framework.AssertionFailedError: An invalid address was turned into a PGinet object: 255.255.1/23'
failed.
     [junit]     at org.postgresql.test.net.PGinetTest.testPGinetIPv4InvalidAddresses(PGinetTest.java:70)


2) It uses Inet[4|6]Address which is only available in JDK1.4+ while the
driver must compile with JDK1.2.


Kris Jurka


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re:
Next
From: Kris Jurka
Date:
Subject: Re: Connection to PostgreSQL server behind proxy