pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: Thomas O'Dowd <tom@uwillsee.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Array support
Date: Fri, 22 Apr 2005 09:37:44 +1200
Message-ID: <42681D28.6060408@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0504211333040.5816@leary.csoft.net>
References: <1114094185.26958.22.camel@localhost.localdomain>
	<Pine.BSO.4.56.0504211333040.5816@leary.csoft.net>

Kris Jurka wrote:
> 
> On Thu, 21 Apr 2005, Thomas O'Dowd wrote:

>>PS. I looked at trying to use PreparedStatement.setArray() but it takes
>>an java.sql.Array, which is just an Interface. I guess I could try
>>creating a class that implements Array and try passing that to
>>setArray() but I'm not even sure if that would work yet either. The
>>setObject() way suggested by the spec is definitely simpler.
> 
> 
> That will work although there are some requirements for getBaseTypeName I 
> think, it must return the pg specific type name used.

More importantly, toString() has to return the data formatted as the
server expects..

-O



view thread (7+ messages)  latest in thread

Message-ID: <42681D28.6060408@opencloud.com>
Permalink:  ../42681D28.6060408@opencloud.com/
Also on:    postgresql.org/message-id/42681D28.6060408@opencloud.com

 · 

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: oliver@opencloud.com, books@ejurka.com, tom@uwillsee.com
  Subject: Re: Array support
  In-Reply-To: <42681D28.6060408@opencloud.com>
  References: <1114094185.26958.22.camel@localhost.localdomain> <Pine.BSO.4.56.0504211333040.5816@leary.csoft.net> <42681D28.6060408@opencloud.com>

* 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