| From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
|---|---|
| To: | hans wulf <lotu1(at)gmx(dot)net> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: PreparedStatement batch statement impossible |
| Date: | 2011-03-08 14:27:44 |
| Message-ID: | AANLkTiks02bEgbddt7EBUa-wkxfyqj1LmBqf01LoPtYz@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)gmx(dot)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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | hans wulf | 2011-03-08 14:55:03 | Re: PreparedStatement batch statement impossible |
| Previous Message | hans wulf | 2011-03-08 14:17:05 | Re: PreparedStatement batch statement impossible |