dbTalk Databases Forums  

[BUGS] BUG #1624: connect uses properties before URL

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1624: connect uses properties before URL in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Donovan
 
Posts: n/a

Default [BUGS] BUG #1624: connect uses properties before URL - 04-25-2005 , 10:58 AM







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("jdbcostgresql:")) return null; //
not our URL

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
  #2  
Old   
Kris Jurka
 
Posts: n/a

Default Re: [BUGS] BUG #1624: connect uses properties before URL - 04-25-2005 , 12:11 PM








On Mon, 25 Apr 2005, Tom Donovan wrote:

Quote:
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 ?

Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.