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

Поиск
Список
Период
Сортировка
От dmp
Тема Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Дата
Msg-id 5106E302.6010004@ttc-cmc.net
обсуждение исходный текст
Ответ на Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values
Следующее
От: Nathaniel Waisbrot
Дата:
Сообщение: Re: Bug report: NullPointerException from Driver.connect when passed a Properties with non-string values