| From: | Quartz <quartz12h(at)yahoo(dot)com> |
|---|---|
| To: | |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: JDBC gripe list (the autocommit subthread) |
| Date: | 2011-03-31 21:25:56 |
| Message-ID: | 234805.83988.qm@web33206.mail.mud.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
int[] ia = batchUpdateException.getUpdateCount()
--- On Thu, 3/31/11, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov> wrote:
> From: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
> Subject: Re: [JDBC] JDBC gripe list (the autocommit subthread)
> To: "Quartz" <quartz12h(at)yahoo(dot)com>
> Cc: pgsql-jdbc(at)postgresql(dot)org
> Received: Thursday, March 31, 2011, 11:03 AM
> Quartz <quartz12h(at)yahoo(dot)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
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Quartz | 2011-03-31 21:27:09 | Re: JDBC gripe list (the autocommit subthread) |
| Previous Message | Kevin Grittner | 2011-03-31 15:46:13 | Re: JDBC gripe list (the autocommit subthread) |