At 22:01 03.08.01 +0200, Rene Pijlman wrote:
>On Fri, 03 Aug 2001 15:06:46 +0200, Denis Bucher wrote:
> >I've FOUND A BUG in the postgres JDBC driver !
>
>OK, please help us fix it.
>
> >If you want to see the source online :
> >http://cs.baylor.edu/~speegle/5335/org/postgresql/
> >
> >Please look at Driver.class :
> >
> > } catch(Exception ex2) {
> > throw new PSQLException("postgresql.unusual",ex2);
> >
> >But it doesn't print the exception ex2 !!!
>
>This code is not supposed to print an exception. Please be more
>specific. What are you doing exactly? Why are we looking at this
>particular line of source code? What exception did you expect?
>Why did you expect it to be printed?
And in brief :
When there is an unexpected exception like "host not found in hba_conf",
the driver throws this "postgres.unusual" exception.
This exception is in the "errors.properties" file, and the exception SHOULD
be printed for two reasons : 1. in the source, "ex2" is specified, and 2. the
error tells us "to record the following exception"
And a lot of people post to mailing-lists because the exception is not printed,
if it was people wouldn't ask, because the text would be clear enough to them.
Therefore, it seems there is a bug (the exception is not printed) and even
if this
wasn't the aim, the exception SHOULD be printed because it would help people
a lot debbuging their applications...
Denis