Re: BUG #1624: connect uses properties before URL

From: Kris Jurka <books(at)ejurka(dot)com>
To: Tom Donovan <tdonovan(at)macromedia(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1624: connect uses properties before URL
Date: 2005-04-25 17:09:59
Message-ID: Pine.BSO.4.56.0504251207020.15985@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, 25 Apr 2005, Tom Donovan wrote:

> Bug reference: 1624
> Logged by: Tom Donovan
> Email address: tdonovan(at)macromedia(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message pgsql-bugs 2005-04-25 19:42:35 Postgres 7.4.6 hang in async_notify
Previous Message Bruce Momjian 2005-04-25 15:59:52 Re: BUG #1623: COPY and unicode