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

From: dmp <danap(at)ttc-cmc(dot)net>
To: Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Date: 2013-01-28 20:43:46
Message-ID: 5106E302.6010004@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nathaniel Waisbrot 2013-01-28 20:50:08 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Previous Message Dave Cramer 2013-01-28 20:29:49 Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values