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, 03 Oct 2005 17:02:51 -0400
Message-ID: <43419C7B.50801@ev.net> (raw)
In-Reply-To: <433EC9D4.9050201@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>

Russell Francis wrote:
> Russell Francis wrote:
> 
>>>Seems reasonable for us to offer a PGxxx class for every core backend
>>>type.  Send them in and we'll take a look...
>>>
>>>Kris Jurka
>>>
>>
>>
>>Kris,
>>
>>Attached is an implementation for the proposed PGcidr & PGinet classes.
>> I have tried to follow the formatting conventions used in the geometric
>>extensions but is is a first attempt, please let me know if there is
>>anything else I should/could do to improve these.
>>
>>I will take any comments / suggestions and incorporate them into the
>>PGmacaddr class also.
>>
>>Cheers,
>>Russ
> 
> 
> Just realized that INET and CIDR also support IPV6 addresses too.  I
> feel dumb :) let me take another stab at this.


Hello all,

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.

For anyone who is interested at the following URL

http://jdbc.ev.net/

There are 7 files available for review and hopefully inclusion in the next release
if they are deemed fit.

A unified diff against the 8.1-dev-401 src
This includes the 3 new types, 3 Test classes as well as
minor modifications to AbstractJdbc2Connection.java and PGtokenizer.java
-------------------------------------
PGNetworkTypes.diff

Implementation of the 3 types.
-------------------------------------
PGcidr.java
PGinet.java
PGmacaddr.java

JUnit Tests of the 3 types.
-------------------------------------
PGcidrTest.java
PGinetTest.java
PGmacaddrTest.java

Please let me know if there is anything I can do to aid with this addition.

Cheers,
Russ



view thread (10+ messages)  latest in thread

Message-ID: <43419C7B.50801@ev.net>
Permalink:  ../43419C7B.50801@ev.net/
Also on:    postgresql.org/message-id/43419C7B.50801@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: <43419C7B.50801@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>

* 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