This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL9_0_802
in repository libpostgresql-jdbc-java.

commit 466457506860138cd67b468e436f95d00e9e69bf
Author: Kris Jurka <[email protected]>
Date:   Sat Oct 16 01:08:04 2010 +0000

    Ensure that an XAConnection throws SQLExceptions appropriately
    even though it's a proxy class.  Before this change it was throwing
    an InvocationTargetException instead of the actual cause.
    
    Report and fix from Yaocl.
---
 org/postgresql/xa/PGXAConnection.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/org/postgresql/xa/PGXAConnection.java 
b/org/postgresql/xa/PGXAConnection.java
index 1229440..3c4dbda 100644
--- a/org/postgresql/xa/PGXAConnection.java
+++ b/org/postgresql/xa/PGXAConnection.java
@@ -143,7 +143,11 @@ public class PGXAConnection extends PGPooledConnection 
implements XAConnection,
                                            PSQLState.OBJECT_NOT_IN_STATE);
                 }
             }
-           return method.invoke(con, args);
+            try {
+                return method.invoke(con, args);
+            } catch (InvocationTargetException ex) {
+                throw ex.getTargetException();
+            }
         }
     }
 

-- 
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

Reply via email to