From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | Johann Robette <jrobette(at)onyme(dot)com> |
Cc: | 'Oliver Jowett' <oliver(at)opencloud(dot)com>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: RE : Postgres 8.0 + JDBC |
Date: | 2004-10-14 21:18:56 |
Message-ID: | Pine.BSO.4.56.0410141609250.18563@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2004-10-14 21:20:17 | Re: Possibly stupid questions re: large tables/files, port 5432 access |
Previous Message | John Sidney-Woollett | 2004-10-14 21:09:09 | Re: Count Issues |
From | Date | Subject | |
---|---|---|---|
Next Message | Ian Pilcher | 2004-10-14 23:00:11 | Mining SQLException for info |
Previous Message | Paul Thomas | 2004-10-14 13:03:16 | Re: PostgreSQL Database interfaced by Java Applet |