Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3CD3E1337BCF for ; Thu, 31 Mar 2011 12:11:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 44776-02-3 for ; Thu, 31 Mar 2011 15:11:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id D257C1337BBA for ; Thu, 31 Mar 2011 12:11:15 -0300 (ADT) Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 5505C28429; Thu, 31 Mar 2011 11:11:15 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 2497DA3E4; Thu, 31 Mar 2011 11:11:15 -0400 (EDT) Date: Thu, 31 Mar 2011 11:11:14 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Martin Handsteiner cc: pgsql-bugs@postgresql.org Subject: Re: BUG #5961: JDBC Driver acceptURL does not check 'jdbc:postgresql:' In-Reply-To: <201103311309.p2VD9E8o097110@wwwmaster.postgresql.org> Message-ID: References: <201103311309.p2VD9E8o097110@wwwmaster.postgresql.org> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/405 X-Sequence-Number: 29915 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