Re: BUG #5961: JDBC Driver acceptURL does not check 'jdbc:postgresql:' - Mailing list pgsql-bugs

From Kris Jurka
Subject Re: BUG #5961: JDBC Driver acceptURL does not check 'jdbc:postgresql:'
Date
Msg-id alpine.BSO.2.00.1103311056470.25650@leary.csoft.net
Whole thread Raw
In response to BUG #5961: JDBC Driver acceptURL does not check 'jdbc:postgresql:'  ("Martin Handsteiner" <martin.handsteiner@sibvisions.com>)
List pgsql-bugs
On Thu, 31 Mar 2011, Martin Handsteiner wrote:

>
> The following bug has been logged online:
>
> Bug reference:      5961
> PostgreSQL version: 9.0 Build 801
> Description:        JDBC Driver acceptURL does not check 'jdbc:postgresql:'
> Details:
>
> JDBC Driver acceptURL does not check 'jdbc:postgresql:'

I'm not sure what check you want it to make.  It is a valid JDBC
connection string.  Testing here shows that it falls back from a v3 to a
v2 protocol connection when a database name is not provided, but it does
still seem to work.

> We have to connect to several Databases on the server. Due to the wrong
> implementation of acceptURL in the Postgres jdbc driver, connecting to any
> other database is impossible.
>

I'm not sure what you mean.  If you don't provide a database name, how do
you expect it to connect to different databases?

Kris Jurka

pgsql-bugs by date:

Previous
From: fhaegele
Date:
Subject: Re: [GENERAL] postgresql-8.4 error
Next
From: Greg Stark
Date:
Subject: Re: Postgres not using indexes