Re: PreparedStatement batch statement impossible - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: PreparedStatement batch statement impossible
Date
Msg-id AANLkTiks02bEgbddt7EBUa-wkxfyqj1LmBqf01LoPtYz@mail.gmail.com
Whole thread Raw
In response to PreparedStatement batch statement impossible  ("hans wulf" <lotu1@gmx.net>)
Responses Re: PreparedStatement batch statement impossible
List pgsql-jdbc
Hans,

It's certainly not clear that this is a requirement of the API. Even
executeBatch is an optional requirement.

Does anyone have any clear direction on how to handle this ? It would
appear that even oracle's jdbc throws an error.

Dave

On Tue, Mar 8, 2011 at 9:17 AM, hans wulf <lotu1@gmx.net> wrote:
> hi,
>
> the API says you can use getGeneratedKeys() after executing the statements. But executeBatch() fails...
>
> The driver has got a problem here:
>
> The normal way would be:
>
> 1. Create a PreparedStatement with the GET_GENERATED_KEYS flag
> 2. executeBatch without Exception
> 3. call getGeneratedKeys()
>
>
> --
> GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit
> gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
>

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: PreparedStatement batch statement impossible
Next
From: "Donald Fraser"
Date:
Subject: Invalid PSQLState used in connection classes