From: Tillmann Schulz <tillmann73@yahoo.de>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Return Codes of BatchUpdateException in PostgreSql 9.6
Date: Wed, 12 Oct 2016 10:23:57 +0000 (UTC)
Message-ID: <1828260214.7688612.1476267837715@mail.yahoo.com> (raw)
References: <1828260214.7688612.1476267837715.ref@mail.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hello,
I am migrating PostgreSql 9.5 to 9.6.0 and I am using the newest JDBC driver (9.4.1211.jre6)
So I am not sure if this is an driver issue or a bug in postgres.
We are making batch updates in our Java application.
Our JUnit Tests fail on 9.6 when querying the return code of a partially failed Bulk Update. In 9.5 everything works fine.
The following code is used:
private void handleBatchUpdateException(java.sql.BatchUpdateException x )
{
final int[] updateCounts = x.getUpdateCounts();
==> in 9.5 only ther failed updates have return code java.sql.Statement.EXECUTE_FAILED = -3. This is CORRECT.
==> in 9.6 all updatecounts have status java.sql.Statement.EXECUTE_FAILED = -3. This is NOT CORRECT.
What to do to get this bug fixed? Do you need more information?
Thank you for your response in advance.
Tillmann Schulz
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tillmann73@yahoo.de
Subject: Re: Return Codes of BatchUpdateException in PostgreSql 9.6
In-Reply-To: <1828260214.7688612.1476267837715@mail.yahoo.com>
References: <1828260214.7688612.1476267837715.ref@mail.yahoo.com> <1828260214.7688612.1476267837715@mail.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