| From: | Hans Deragon <hans(at)deragon(dot)biz> |
|---|---|
| To: | Dave(at)micro-automation(dot)net |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: Fix to driver to handle errors correctly |
| Date: | 2002-03-16 12:33:00 |
| Message-ID: | 3C933B7C.8020502@deragon.biz |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Hello again.
Dave Cramer wrote:
> Viacheslav Tararin found an error where the driver was not correctly
> handling multiple errors on the same connection. I have modified
> QueryExecuter so that it now will simply accumulate errors on the
> backend until the protocol has finished, and then throw the exception.
>
> I have updated the jar on the download site as well.
>
> I have also done a little more work on the logging mechanism. You can
> now specify the logLevel with
>
> org.postgresql.Driver.setLogLevel(DEBUG,INFO,WARN,ERROR,FATAL)
>
> I'm loath to start sprinking debugging messages around, since it will
> only slow the driver down. But the mechanism is there
That's why I always thought that java should have come with a
preprocessor. Then you could easily provide 2 versions of the driver,
one with built in logs and another free of any logging code.
Preprocessing is great for adding debuging features to a code.
I know, I know, people can shoot themselves with preprocessing. So let
them do so... but do not hold out a feature because of this... (hear
this Sun?)
My 2 cents. ;)
Hans
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2002-03-16 15:44:05 | Re: NullPointer at ResultSet.java:113 |
| Previous Message | Hans Deragon | 2002-03-16 12:25:54 | Re: NullPointer at ResultSet.java:113 |