pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Miroslav Šulc <miroslav.sulc@startnet.cz>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC and arrays
Date: Fri, 2 Feb 2007 12:00:25 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0702021158370.19418@leary2.csoft.net> (raw)
In-Reply-To: <45C304FB.6020702@startnet.cz>
References: <45C295F4.4030100@startnet.cz>
	<Pine.BSO.4.64.0702020154310.31728@leary2.csoft.net>
	<45C304FB.6020702@startnet.cz>



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.



view thread (11+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0702021158370.19418@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.64.0702021158370.19418@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0702021158370.19418@leary2.csoft.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: books@ejurka.com, miroslav.sulc@startnet.cz
  Subject: Re: JDBC and arrays
  In-Reply-To: <Pine.BSO.4.64.0702021158370.19418@leary2.csoft.net>
  References: <45C295F4.4030100@startnet.cz> <Pine.BSO.4.64.0702020154310.31728@leary2.csoft.net> <45C304FB.6020702@startnet.cz> <Pine.BSO.4.64.0702021158370.19418@leary2.csoft.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