Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0C6F71337BBB for ; Fri, 18 Mar 2011 19:52:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 71958-07 for ; Fri, 18 Mar 2011 22:52:31 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 88F0D1337B97 for ; Fri, 18 Mar 2011 19:52:29 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p2IMqTn5039939 for ; Fri, 18 Mar 2011 19:52:29 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p2IMnSL1007397 for pgsql-jdbc@postgresql.org; Fri, 18 Mar 2011 19:49:28 -0300 (ADT) (envelope-from news) From: Lew X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: Problem with executeBatch and "A result was returned when none was expected" Date: Fri, 18 Mar 2011 18:49:46 -0400 Organization: albasani.net Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: news.albasani.net; logging-data="ndfSlgjglWZX8KHuPoFZY6pihJK9hMcBkDMV2B32C7xpGQAB+rW/th3x8UNvUCWFXBCNXZ78JvZoWxd++rb31m5bNtIEweQjrPOBY3zPVSs4MTbP6PqF47FISU5XGoeE"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: Cancel-Lock: sha1:qmk6znHgNIshj/3RFkTsuogue2o= To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/29 X-Sequence-Number: 21584 Please stop top-posting. Sean Bowman wrote: > Thanks for the quick response. I'll switch it around to execute() each > prepared statement individually, and accumulate the generated ID's [sic]. Why don't you try it batched without the RETURNING clause, and use 'getGeneratedKeys()' as the docs suggest? -- Lew Honi soit qui mal y pense.