Re: Problem with executeBatch and "A result was returned when none was expected" - Mailing list pgsql-jdbc

From Lew
Subject Re: Problem with executeBatch and "A result was returned when none was expected"
Date
Msg-id im0nho$n5q$2@news.albasani.net
Whole thread Raw
In response to Re: Problem with executeBatch and "A result was returned when none was expected"  (Sean Bowman <pico303@gmail.com>)
Responses Re: Problem with executeBatch and "A result was returned when none was expected"
List pgsql-jdbc
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.

pgsql-jdbc by date:

Previous
From: Lew
Date:
Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
Next
From: Oliver Jowett
Date:
Subject: Re: Problem with executeBatch and "A result was returned when none was expected"