Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values - Mailing list pgsql-jdbc

From dmp
Subject Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Date
Msg-id 5106E302.6010004@ttc-cmc.net
Whole thread Raw
In response to Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
Nathaniel patch should be fine. I think you have to test the properties Dave
as he has done. Its just a matter if you want it the SQLException or return
NULL.

Did you test this Nathaniel?

danap.

Dave Cramer wrote:
> My proposed patch is this
>
> if (url.startsWith("jdbc:postgresql:")) {
>              return null;
>          }
> Right at the top of getConnection, before we do any real work.
>
> Thoughts ?
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Next
From: Nathaniel Waisbrot
Date:
Subject: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values