Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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

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\   line 203
    if (! url.toLowerCase().startsWith("jdbc:postgresql:")) return null;  //
not our URL


pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group