pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Miroslav Šulc <miroslav.sulc@startnet.cz>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC and arrays
Date: Wed, 07 Feb 2007 04:48:31 +0100
Message-ID: <45C94C0F.8080803@startnet.cz> (raw)
In-Reply-To: <45C34D67.6000509@ev.net>
References: <45C295F4.4030100@startnet.cz>
	<Pine.BSO.4.64.0702020154310.31728@leary2.csoft.net>
	<45C304FB.6020702@startnet.cz>
	<45C34D67.6000509@ev.net>

Russell,

thank you for the link. I have all the logic already implemented either 
in my classes or I use system one (like java.net.Inet4Address) so what I 
need (and have) is just a simple implementation of PGobject which 
returns correct type and the value.

Best regards,

--
Miroslav Šulc


Russell Francis napsal(a):
> Miroslav Šulc wrote:
>   
>> Thank you for explanation. If I still want to write inet[] data, is it
>> sufficient to implement PGobject so it returns 'inet[]' type and '{
>> "ip", "ip" }' value and pass that to setObject()?
>>     
>
> Miroslav,
>
> I don't know if this will help you but awhile ago I implemented data
> types for the JDBC driver for PGinet, PGmacaddr, PGcidr which have been
> used successfully by a number of people including myself ;)  I would
> still like to get them integrated into the driver but haven't had much
> time to pursue it.  You can find the current version at
>
> http://oak.cats.ohiou.edu/~rf358197/jdbc/2/
>
> I have zero experience using them in an array but if you are using those
> data types in PostgreSQL and using Java, the code might be useful to you.
>
> Kind regards,
> Russ
>   



view thread (11+ messages)

Message-ID: <45C94C0F.8080803@startnet.cz>
Permalink:  ../45C94C0F.8080803@startnet.cz/
Also on:    postgresql.org/message-id/45C94C0F.8080803@startnet.cz

 · 

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: miroslav.sulc@startnet.cz
  Subject: Re: JDBC and arrays
  In-Reply-To: <45C94C0F.8080803@startnet.cz>
  References: <45C295F4.4030100@startnet.cz> <Pine.BSO.4.64.0702020154310.31728@leary2.csoft.net> <45C304FB.6020702@startnet.cz> <45C34D67.6000509@ev.net> <45C94C0F.8080803@startnet.cz>

* 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