Re: JDBC and arrays

From: Kris Jurka <books(at)ejurka(dot)com>
To: Miroslav Šulc <miroslav(dot)sulc(at)startnet(dot)cz>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC and arrays
Date: 2007-02-02 17:00:25
Message-ID: Pine.BSO.4.64.0702021158370.19418@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Fri, 2 Feb 2007, 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()?

That should work although you'll probably need to write _inet
instead of inet[]. The underscore variant is the the backend's true
datatype name and I'm not sure if it will accept the other version in this
context.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Wm.A.Stafford 2007-02-02 19:30:02 out of memory error
Previous Message Russell Francis 2007-02-02 14:40:39 Re: JDBC and arrays