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: 20050425132932.500A1F0C25@svr2.postgresql.org (view raw or flat)
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

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-2014 The PostgreSQL Global Development Group