Re: Problem with executeBatch and "A result was returned when none was expected"

From: Lew <noone(at)lewscanon(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
Date: 2011-03-18 22:49:46
Message-ID: im0nho$n5q$2@news.albasani.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2011-03-19 08:46:36 Re: Problem with executeBatch and "A result was returned when none was expected"
Previous Message Lew 2011-03-18 22:47:59 Re: Problem with executeBatch and "A result was returned when none was expected"