This is an automated email from the git hooks/post-receive script. ebourg-guest pushed a commit to tag REL8_0_324 in repository libpostgresql-jdbc-java.
commit 87ccc4fecf0d820c060eaf07286800f9b5e6e529 Author: Kris Jurka <[email protected]> Date: Wed May 27 23:55:51 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 5ec7177..4a0f552 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.68.2.15 2007/07/27 09:02:04 jurka Exp $ +* $PostgreSQL: pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v 1.68.2.16 2008/04/02 17:06:32 jurka Exp $ * *------------------------------------------------------------------------- */ @@ -2433,6 +2433,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

