pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Johann Robette <jrobette@onyme.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: RE : Postgres 8.0 + JDBC
Date: Thu, 14 Oct 2004 16:18:56 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0410141609250.18563@leary.csoft.net> (raw)
In-Reply-To: <Pine.BSO.4.56.0410061140380.5501@leary.csoft.net>
References: <005a01c4ab74$fd193460$a5010a0a@Johann>
	<Pine.BSO.4.56.0410061140380.5501@leary.csoft.net>



On Wed, 6 Oct 2004, Kris Jurka wrote:

> On Wed, 6 Oct 2004, Johann Robette wrote:
> 
> > But as I'm a newbie in this field, could you give me an example of how
> > to do that.
> 
> It's not something you can do in your code.  It will require changes to 
> the driver itself.  Oliver or I will do this at some point, but I couldn't 
> say when.  If you're desperate to get a fix immediately I've attached a 
> patch implementing the inferior solution I suggested that made a simple 
> test work for me.
> 

Just wanted to follow up with you here in case you weren't carefully 
following the mailing list.  Oliver has provided a patch to make this 
happen and it is now in the cvs repository.

It does require some changes to the PostgresArray class you sent.  Notably 
the datatype name needs to match up exactly with the pg data type (aliases 
aren't allowed).  So for example the create(long[] array) method currently 
creates does this at the end:

return new PostgresArray(sb.toString(), Types.BIT, "bigint");

this now needs to use "int8" as the type name.  The Types.BIT is also 
bogus, but that currently isn't a problem.

Kris Jurka



view thread (3+ messages)

Message-ID: <Pine.BSO.4.56.0410141609250.18563@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0410141609250.18563@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0410141609250.18563@leary.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, jrobette@onyme.com, oliver@opencloud.com
  Subject: Re: Postgres 8.0 + JDBC
  In-Reply-To: <Pine.BSO.4.56.0410141609250.18563@leary.csoft.net>
  References: <005a01c4ab74$fd193460$a5010a0a@Johann> <Pine.BSO.4.56.0410061140380.5501@leary.csoft.net> <Pine.BSO.4.56.0410141609250.18563@leary.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