BUG #1624: connect uses properties before URL

From: "Tom Donovan" <tdonovan(at)macromedia(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1624: connect uses properties before URL
Date: 2005-04-25 13:29:32
Message-ID: 20050425132932.500A1F0C25@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1624
Logged by: Tom Donovan
Email address: tdonovan(at)macromedia(dot)com
PostgreSQL version: 8-0-311
Operating system: Windows 2000
Description: connect uses properties before URL
Details:

The JDBC DriverManager calls connect() in all loaded drivers to find a
driver for a URL.

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.

Recommend adding one line at
postgresql-jdbc-8.0-311.src\org\postgresql\Driver.java.in line 203

if (! url.toLowerCase().startsWith("jdbc:postgresql:")) return null; //
not our URL

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2005-04-25 15:59:52 Re: BUG #1623: COPY and unicode
Previous Message Diarmaid Foley 2005-04-25 13:24:42 BUG #1623: COPY and unicode