pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Quartz <quartz12h@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC gripe list (the autocommit subthread)
Date: Thu, 31 Mar 2011 14:25:56 -0700 (PDT)
Message-ID: <234805.83988.qm@web33206.mail.mud.yahoo.com> (raw)
In-Reply-To: <4D94518F020000250003BFE8@gw.wicourts.gov>

int[] ia = batchUpdateException.getUpdateCount()



--- On Thu, 3/31/11, Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:

> From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
> Subject: Re: [JDBC] JDBC gripe list (the autocommit subthread)
> To: "Quartz" <quartz12h@yahoo.com>
> Cc: pgsql-jdbc@postgresql.org
> Received: Thursday, March 31, 2011, 11:03 AM
> Quartz <quartz12h@yahoo.com>
> wrote:
>  
> > If I issue statement 1, 2 and 3, and statement 2
> fails, there is
> > no prescribed behavior for statement 3, but one sure
> thing is the
> > statement 1 must be completed.
>  
> I don't see how executeBatch can both throw the documented
> exception
> (BatchUpdateException) and return the int[] which would
> tell you
> what completed.  It doesn't seem to me to make sense
> to complete
> some unknown mystery subset of the statements, so the only
> sane
> behavior is to apply none if the documented exception is
> thrown.
>  
> -Kevin
> 



view thread (21+ messages)  latest in thread

Message-ID: <234805.83988.qm@web33206.mail.mud.yahoo.com>
Permalink:  ../234805.83988.qm@web33206.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/234805.83988.qm@web33206.mail.mud.yahoo.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: quartz12h@yahoo.com
  Subject: Re: JDBC gripe list (the autocommit subthread)
  In-Reply-To: <234805.83988.qm@web33206.mail.mud.yahoo.com>
  References: <4D94518F020000250003BFE8@gw.wicourts.gov> <234805.83988.qm@web33206.mail.mud.yahoo.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