Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6243E1337B68 for ; Tue, 8 Mar 2011 10:17:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 39152-07 for ; Tue, 8 Mar 2011 14:17:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id A7C371337B5D for ; Tue, 8 Mar 2011 10:17:08 -0400 (AST) Received: (qmail 20993 invoked by uid 0); 8 Mar 2011 14:17:06 -0000 Received: from 217.91.105.163 by www147.gmx.net with HTTP; Tue, 08 Mar 2011 15:17:05 +0100 (CET) Content-Type: text/plain; charset="utf-8" Date: Tue, 08 Mar 2011 15:17:05 +0100 From: "hans wulf" Message-ID: <20110308141705.13350@gmx.net> MIME-Version: 1.0 Subject: Re: PreparedStatement batch statement impossible To: pgsql-jdbc@postgresql.org, pg@fastcrypt.com X-Authenticated: #18544190 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/Xa28SdKrXP4ElGKE6PUM/Fzf0XQVlXrYVDp+aS9 VEFVXiZQ3ART2RVkmU3ekG2XGyKbD69ZNXIQ== Content-Transfer-Encoding: 8bit X-GMX-UID: UwNFdQIxMmA6TFWacWBngc85MjQ1N91+ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.14 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FAKE_REPLY_C=1.486, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: * X-Archive-Number: 201103/10 X-Sequence-Number: 21565 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