Re: JDBC and arrays

Поиск
Список
Период
Сортировка
От Miroslav Šulc
Тема Re: JDBC and arrays
Дата
Msg-id 45C94C0F.8080803@startnet.cz
обсуждение исходный текст
Ответ на Re: JDBC and arrays  (Russell Francis <rfrancis@ev.net>)
Список 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
>

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Jeffrey Cox
Дата:
Сообщение: Re: getProcedureColumns
Следующее
От: "janaka priyadarshana"
Дата:
Сообщение: Re: use connection pooling