Re: JDBC2.0:PreparedStatement setArray

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Luigi Ruggiero <luigi(at)camara(dot)co(dot)za>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC2.0:PreparedStatement setArray
Date: 2003-11-10 10:29:36
Message-ID: 20031110102933.GC29852@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, Nov 10, 2003 at 11:59:34AM +0200, Luigi Ruggiero wrote:
> Hi there,
>
> I am trying to set an array type in the preparedStatement. We are using
> a Postgres 7.3.2 database. The driver jar version used, pg73jdbc3.jar.
> Does anyone have a clue on how to do this?

With the patch applied (below) you pass your own implementation of
java.sql.Array (that implements at least getBaseType and getArray) to
PreparedStatement.setArray.

[...]

> I know there is a patch somewhere for this, does anyone know where can
> find it?

http://archives.postgresql.org/pgsql-jdbc/2003-07/msg00294.php

I can regenerate this against current CVS if needed.

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message pginfo 2003-11-10 16:06:25 Re: problem connecting from JDBC
Previous Message Luigi Ruggiero 2003-11-10 09:59:34 JDBC2.0:PreparedStatement setArray