Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buGiO-0005XQ-Pz for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Oct 2016 10:24:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buGiO-0005JN-Cx for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Oct 2016 10:24:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buGhj-0004Uh-Ky for pgsql-bugs@postgresql.org; Wed, 12 Oct 2016 10:24:08 +0000 Received: from nm1-vm6.bullet.mail.ir2.yahoo.com ([212.82.96.77]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buGhc-0007TE-Jz for pgsql-bugs@postgresql.org; Wed, 12 Oct 2016 10:24:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1476267838; bh=J8j1MWZNBRR8UWxMwY1oVpbzS1J6Nrcu9QiSFQTrUcg=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=J5JjqmX8OwT1aTE1MlzBv0o5BunLeuTTpeYRDhrqaR2nzehCAKTTo9wBnD8U3IrmAIIsEL3FIcN32rZPAp6YzkTQZx6yhaPZoKgLo6ofaI61MUpJFbABaXRLzkI7jAFIGfN/MfJipJvgp+FOnQeb6wNLfsEvmcHD9DlNOMbWk/SvVWuHYJexkXduksASmn6pIH/pqw1z7zExx9/rAAVhL5TnhyajxB6bVN0VT/J6CcRjR8Jge5EnoPkfvGTSiO0RBwmZwkYuO+1nA0hllZUK3iPMEH4pA5k5OvZoXxLFu3HdML4BGVu2q0WdUD9owifOQZmPs3p9+k6bwcsH7ePM4Q== Received: from [212.82.98.124] by nm1.bullet.mail.ir2.yahoo.com with NNFMP; 12 Oct 2016 10:23:58 -0000 Received: from [212.82.98.64] by tm17.bullet.mail.ir2.yahoo.com with NNFMP; 12 Oct 2016 10:23:58 -0000 Received: from [127.0.0.1] by omp1001.mail.ir2.yahoo.com with NNFMP; 12 Oct 2016 10:23:58 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 465701.78079.bm@omp1001.mail.ir2.yahoo.com X-YMail-OSG: avbPxVkVM1kjJJwhQI6Gcdh_NhP4KgOVCsciYqq5w_KSDY6QcJ3b4l1U.3MInKi DOBpve10dX.A5FSgak6ODzxi7SdkupkKxOLH9usvbkgQwD3en1jdkqRubrtWbfRMOQi3FV2TGk0Z YWxpdg3ZIHLnuKUbD7kGRLQ68PD4SklaKQu0tKx4.qs8sYqfC0CHMz.NzkGzH8RhVeui2MtcSRec CH46AU_avgvQa5KjOd.SFkKRSKvkrUBsTUawqZKScob1QsyLsSbFDDqmlxwTQq7nPwavh.i45BIb vBRoeAq_z97am0lmiDWsI3stGPyRJl9UmmEK_UMFtczSWLPC3Z0Bap4lXryz0tTHl0KpN8Nij5hm Ntrl5_G7Rl.oEy8KG_ut1.oQmuvAwn9Plvp16i5.vPRZBVfdYfF2RwcPyp8ejALiP.uey3OkBO_U bTaXFrzheLdu_lBr6GeZdNO54.GJrlVKORM7bj1DKYlf6LpAG.S8haxcZWx3LLhvftOTWwJa6Aco 57iFjzVg1SwiqflhjX90- Received: from jws700006.mail.ir2.yahoo.com by sendmailws169.mail.ir2.yahoo.com; Wed, 12 Oct 2016 10:23:57 +0000; 1476267837.929 Date: Wed, 12 Oct 2016 10:23:57 +0000 (UTC) From: Tillmann Schulz Reply-To: Tillmann Schulz To: "pgsql-bugs@postgresql.org" Message-ID: <1828260214.7688612.1476267837715@mail.yahoo.com> Subject: Return Codes of BatchUpdateException in PostgreSql 9.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <1828260214.7688612.1476267837715.ref@mail.yahoo.com> Content-Length: 858 X-Pg-Spam-Score: -1.5 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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