X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 73A50D7ECA for ; Mon, 10 Oct 2005 09:59:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04502-09 for ; Mon, 10 Oct 2005 12:59:27 +0000 (GMT) Received: from mail.ev.net (unknown [132.235.215.234]) by svr1.postgresql.org (Postfix) with SMTP id 262D8D9A51 for ; Mon, 10 Oct 2005 09:59:29 -0300 (ADT) Received: (qmail 6121 invoked by uid 98); 10 Oct 2005 09:06:23 +0000 Received: from 192.168.1.64 by mail.ev.net (envelope-from , uid 98) with qmail-scanner-1.25 (clamdscan: 0.87/1082. Clear:RC:1(192.168.1.64):. Processed in 0.105065 secs); 10 Oct 2005 09:06:23 -0000 X-Qmail-Scanner-Mail-From: rfrancis@ev.net via mail.ev.net X-Qmail-Scanner: 1.25 (Clear:RC:1(192.168.1.64):. Processed in 0.105065 secs) Received: from unknown (HELO ?192.168.1.64?) (192.168.1.64) by mail.ev.net with SMTP; 10 Oct 2005 09:06:23 +0000 Message-ID: <434A65B3.2000504@ev.net> Date: Mon, 10 Oct 2005 08:59:31 -0400 From: Russell Francis User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: queries against CIDR fail against 8.0.3? References: <433BE38F.3080605@ev.net> <433C7725.1040707@opencloud.com> <433D8CA1.3050601@ev.net> <433DF50D.7060206@ev.net> <433EC9D4.9050201@ev.net> <43419C7B.50801@ev.net> In-Reply-To: X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/45 X-Sequence-Number: 13976 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