Re: JDBC and arrays

From: Miroslav Šulc <miroslav(dot)sulc(at)startnet(dot)cz>
To:
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC and arrays
Date: 2007-02-07 03:48:31
Message-ID: 45C94C0F.8080803@startnet.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message janaka priyadarshana 2007-02-08 09:45:53 Re: use connection pooling
Previous Message Jeffrey Cox 2007-02-06 09:36:50 Re: getProcedureColumns