pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Russell Francis <rfrancis@ev.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: queries against CIDR fail against 8.0.3?
Date: Mon, 10 Oct 2005 08:59:31 -0400
Message-ID: <434A65B3.2000504@ev.net> (raw)
In-Reply-To: <Pine.BSO.4.61.0510062121220.12724@leary.csoft.net>
References: <433BE38F.3080605@ev.net>
	<433C7725.1040707@opencloud.com>
	<433D8CA1.3050601@ev.net>
	<Pine.BSO.4.61.0509301526260.29537@leary.csoft.net>
	<433DF50D.7060206@ev.net>
	<433EC9D4.9050201@ev.net>
	<43419C7B.50801@ev.net>
	<Pine.BSO.4.61.0510062121220.12724@leary.csoft.net>

Kris Jurka wrote:
> 
> 
> 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.

Kris,

Thanks for taking a partial look at it, I think your comments give me
enough insight to make another attempt and ensure it will compile
against jdk1.2.

> 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) 

This is strange, I am unable to duplicate this on my machine (FreeBSD/jdk1.4.2/x86)
I will see if I can duplicate this on a different machine.  Out of curiosity, what
OS/jdk/cpu are you using?

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

Good point, I wasn't aware of that but I guess I won't be able to use the InetAddress
classes.

I will try to have another version of this patch which addresses the above issues
for you when you get back from your vacation.

Cheers,
Russ



view thread (10+ messages)

Message-ID: <434A65B3.2000504@ev.net>
Permalink:  ../434A65B3.2000504@ev.net/
Also on:    postgresql.org/message-id/434A65B3.2000504@ev.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: rfrancis@ev.net
  Subject: Re: queries against CIDR fail against 8.0.3?
  In-Reply-To: <434A65B3.2000504@ev.net>
  References: <433BE38F.3080605@ev.net> <433C7725.1040707@opencloud.com> <433D8CA1.3050601@ev.net> <Pine.BSO.4.61.0509301526260.29537@leary.csoft.net> <433DF50D.7060206@ev.net> <433EC9D4.9050201@ev.net> <43419C7B.50801@ev.net> <Pine.BSO.4.61.0510062121220.12724@leary.csoft.net> <434A65B3.2000504@ev.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox