From: | Denis Bucher <dbucher(at)niftycom(dot)com> |
---|---|
To: | Rene Pijlman <rpijlman(at)wanadoo(dot)nl>, pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Bug found in the driver |
Date: | 2001-08-06 10:14:13 |
Message-ID: | 5.1.0.14.0.20010806120957.025ee2f0@mail.niftycom.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Rene Pijlman | 2001-08-06 11:32:18 | Re: Retrieving field of type bigint[] |
Previous Message | Denis Bucher | 2001-08-06 10:09:36 | Re: Bug found in the driver |