<< Back to previous view

[JDBC-21] Accept string URL as connection parameters Created: 17/Oct/11  Updated: 02/Nov/11  Resolved: 02/Nov/11

Status: Resolved
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: Phil Hagelberg Assignee: Phil Hagelberg
Resolution: Completed Votes: 0
Labels: None

Attachments: Text File 0001-Accept-string-or-URI-in-with-connection.patch     Text File jdbc-21-take2.patch    
Patch: Code and Test

 Description   

Should support connection parameters in this style:

(with-connection "postgres://user:password@host.com:port/db-name" [...])



 Comments   
Comment by Phil Hagelberg [ 17/Oct/11 1:18 PM ]

Talked this over with Sean on IRC; I'll put together a patch.

Comment by Phil Hagelberg [ 17/Oct/11 4:21 PM ]

Implements said functionality. Patch depends upon supplied patch for JDBC-22.

Comment by Phil Hagelberg [ 17/Oct/11 4:54 PM ]

Hold off on this patch; apparently the scheme and subprotocol don't always match up. Will provide an updated patch.

Comment by Phil Hagelberg [ 17/Oct/11 6:00 PM ]

This one should take care of the subprotocol issue; it also adds support for running the tests against postgres.

Comment by Sean Corfield [ 02/Nov/11 2:52 PM ]

Patches applied - thank you!

Generated at Thu Oct 23 06:47:55 CDT 2014 using JIRA 4.4#649-r158309.