pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Bowman <pico303@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
Date: Sat, 19 Mar 2011 03:22:18 -0600
Message-ID: <C9A9CD28.5DE2%pico303@gmail.com> (raw)
In-Reply-To: <AANLkTikb2O676Sv7TEqOB0bNYrrXP-z+4a4J8Aj66X6z@mail.gmail.com>

SQL databases won't return any data that was created without the RETURNING
clause.  Also, if you read the original post, you'd see the RETURNING
clause gets appended and does just fine when not in batch mode.

But that all said, individual SQL execute() statements are fine for the
near future.  I'll worry about performance when we've got a million
customers.
  
On 3/19/11 2:46 AM, "Oliver Jowett" <oliver@opencloud.com> wrote:

>There *is* no RETURNING clause in the application's original query
>(see the code in the OP), that clause is being added by the driver to
>implement Statement.RETURN_GENERATED_KEYS.





view thread (16+ messages)

Message-ID: <C9A9CD28.5DE2%pico303@gmail.com>
Permalink:  ../C9A9CD28.5DE2%25pico303@gmail.com/
Also on:    postgresql.org/message-id/C9A9CD28.5DE2%pico303@gmail.com

 · 

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: pico303@gmail.com
  Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
  In-Reply-To: <C9A9CD28.5DE2%pico303@gmail.com>
  References: <AANLkTikb2O676Sv7TEqOB0bNYrrXP-z+4a4J8Aj66X6z@mail.gmail.com> <C9A9CD28.5DE2%pico303@gmail.com>

* 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