This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_1_414 in repository libpostgresql-jdbc-java.
commit aadfc182ed13abbf13a4094ead286ca0978c944e Author: Kris Jurka <[email protected]> Date: Wed May 27 23:55:43 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org/postgresql/jdbc2/AbstractJdbc2Statement.java b/org/postgresql/jdbc2/AbstractJdbc2Statement.java index 6d55bed..3ca25db 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.84.2.12 2007/07/27 09:01:59 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.84.2.13 2008/04/02 17:06:21 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -2510,6 +2510,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

