This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_2_510 in repository libpostgresql-jdbc-java.
commit 2f1ef64bb2b8a7884861f0e7534e98f8c0accd31 Author: Kris Jurka <[email protected]> Date: Wed May 27 23:55:35 2009 +0000 Initialize BatchUpdateExceptions with the SQLState of the SQLException that they are wrapping. Code that inspects the SQLStates of SQLExceptions, but doesn't unwrap the nested exception will not understand the underlying cause and may make incorrect decisions about the severity of the error. Fujii Masao --- org/postgresql/jdbc2/AbstractJdbc2Statement.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java index 91e640e..50c38f4 100644 --- a/org/postgresql/jdbc2/AbstractJdbc2Statement.java +++ b/org/postgresql/jdbc2/AbstractJdbc2Statement.java @@ -3,7 +3,7 @@ * Copyright (c) 2004-2005, PostgreSQL Global Development Group * * IDENTIFICATION -* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.96.2.6 2008/01/30 12:49:00 davecramer Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.96.2.7 2008/04/02 17:06:13 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -2528,6 +2528,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement batchException = new BatchUpdateException(GT.tr("Batch entry {0} {1} was aborted. Call getNextException to see the cause.", new Object[]{ new Integer(resultIndex), queryString}), + newError.getSQLState(), successCounts); } @@ -2594,6 +2595,7 @@ public abstract class AbstractJdbc2Statement implements BaseStatement batchException = new BatchUpdateException(GT.tr("Batch entry {0} {1} was aborted. Call getNextException to see the cause.", new Object[]{ new Integer(resultIndex), queryString}), + newError.getSQLState(), successCounts); } -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

