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

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: dmp <danap(at)ttc-cmc(dot)net>
Cc: List <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-29 16:59:12
Message-ID: CADK3HHLh0Gvx17MP67KfF-Daqk16Az_-XSxXD072U5f=OG3u8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

It's the placement of it that is important. It checks there before it does
anything of consequence at all. I left it in parseURL in case there is a
path that I wasn't aware of, and it is pretty inconsequential

Dave Cramer

dave.cramer(at)credativ(dot)ca
http://www.credativ.ca

On Tue, Jan 29, 2013 at 11:54 AM, dmp <danap(at)ttc-cmc(dot)net> wrote:

> Dave,
>
> The inclusion of:
>
> if (!url.startsWith("jdbc:**postgresql:")) {
> return null;
> }
>
> in the patch yesterday does not appear to have
> been necessary because it looks to be checked
> in parseURL().
>
> danap.
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message dmp 2013-01-29 17:23:30 Re: [BUGS]log can not be output when use DataSource
Previous Message dmp 2013-01-29 16:56:07 Re: JDBC connection test with SSL on PG 9.2.1 server