Skip site navigation (1) Skip section navigation (2)

RE: PG6.5 + JDBC + Linux + Kaffe

From: "Jon Nielsen" <jonfn(at)image(dot)dk>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: PG6.5 + JDBC + Linux + Kaffe
Date: 1999-06-23 18:13:16
Message-ID: 010801bebda4$12029d40$ca0ba8c0@bilbo (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
Hi Daniele,

Your example does not work for two reasons:

Your call to DriverManager is incorrect. 
The correct form is either
  Connection db = DriverManager.getConnection("jdbc:postgresql:DATABASE","USER","PASSWORD");
  Connection db = DriverManager.getConnection("jdbc:postgresql://MACHINE/DATABASE","USER","PASSWORD");

There is a bug in the '' file which causes the JDBC driver not to return the correct error messages.

You can fix this yourself, by changing {1} to {0}, and {2} to {1} and so on. Then you should get the correct error message.

Hope that helps you

Jon Nielsen

pgsql-interfaces by date

Next:From: Craig OrsingerDate: 1999-06-23 18:19:07
Subject: Re: [INTERFACES] Trying to get started?
Previous:From: Jon NielsenDate: 1999-06-23 18:01:28
Subject: RE: PG6.5 + JDBC + Linux + Kaffe

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group