pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lew <noone@lewscanon.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
Date: Fri, 18 Mar 2011 18:49:46 -0400
Message-ID: <im0nho$n5q$2@news.albasani.net> (raw)
In-Reply-To: <C9A5E83F.5013%pico303@gmail.com>
References: <AANLkTinKjMQifBcTKsyYs59LMuUKxJePS4-+ia+-Hkm9@mail.gmail.com>
	<C9A5E83F.5013%pico303@gmail.com>

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.



view thread (16+ messages)  latest in thread

Message-ID: <im0nho$n5q$2@news.albasani.net>
Permalink:  ../im0nho$n5q$2@news.albasani.net/
Also on:    postgresql.org/message-id/im0nho$n5q$2@news.albasani.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: noone@lewscanon.com
  Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
  In-Reply-To: <im0nho$n5q$2@news.albasani.net>
  References: <AANLkTinKjMQifBcTKsyYs59LMuUKxJePS4-+ia+-Hkm9@mail.gmail.com> <C9A5E83F.5013%pico303@gmail.com> <im0nho$n5q$2@news.albasani.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox