bug in new StatementHandler - Mailing list pgsql-jdbc

From Mike Beachy
Subject bug in new StatementHandler
Date
Msg-id 20021212184700.GC7805@marketdude.com
Whole thread Raw
Responses Re: bug in new StatementHandler  (Aaron Mulder <ammulder@alumni.princeton.edu>)
List pgsql-jdbc
There's a problem in how exceptions are handled (or rather, not handled)
in the new StatementHandler. If an SQLException is thrown in one of the
Statement methods, java.lang.reflect.Method catches it and throws it as
an InvocationTargetException. The handler needs to catch this and
extract the underlying exception.

A test for this problem and a patch are attached.

The same problem seems to exist for the ConnectionHandler, so I
implemented the code there as well. Aaron, if you could double check
what I've done that'd be cool.

Thanks.

Mike

Attachment

pgsql-jdbc by date:

Previous
From: "Alvaro Escobar"
Date:
Subject: JDBC
Next
From: Aaron Mulder
Date:
Subject: Re: bug in new StatementHandler