Re: BUG #1624: connect uses properties before URL - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: BUG #1624: connect uses properties before URL
Date
Msg-id Pine.BSO.4.56.0504251207020.15985@leary.csoft.net
Whole thread Raw
In response to BUG #1624: connect uses properties before URL  ("Tom Donovan" <tdonovan@macromedia.com>)
List pgsql-bugs
On Mon, 25 Apr 2005, Tom Donovan wrote:

> Bug reference:      1624
> Logged by:          Tom Donovan
> Email address:      tdonovan@macromedia.com
> PostgreSQL version: 8-0-311
> Description:        connect uses properties before URL
> Details:
>
> The JDBC DriverManager calls connect() in all loaded drivers to find a
> driver for a URL.

Then what is the purpose of Driver.acceptsURL ?

> The PostgreSQL driver iterates the properties before checking if it is a
> PostgreSQL URL.  If properties for any other driver are large (i.e. for an
> in-memory db) or not String (as they should be) - this fails.

Could we see an actual failure scenario (stacktrace) here?  I don't see
why a large number of properties would be a problem.  A non-String object
in a Properties is a problem in the calling code, not ours.

Kris Jurka

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #1623: COPY and unicode
Next
From: pgsql-bugs@counterstorm.com
Date:
Subject: Postgres 7.4.6 hang in async_notify