pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jon Nielsen <jonfn@image.dk>
To: pgsql-interfaces@postgresql.org
Subject: RE: PG6.5 + JDBC + Linux + Kaffe
Date: Wed, 23 Jun 1999 20:01:28 +0200
Message-ID: <002c01bebda2$6c704040$ca0ba8c0@bilbo> (raw)

Hi Daniele,

Your example does not work for two reasons:

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


2)
There is a bug in the 'error.properties' 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
jonfn@image.dk

view thread (6+ messages)  latest in thread

Message-ID: <002c01bebda2$6c704040$ca0ba8c0@bilbo>
Permalink:  ../002c01bebda2$6c704040$ca0ba8c0@bilbo/
Also on:    postgresql.org/message-id/002c01bebda2$6c704040$ca0ba8c0@bilbo

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jonfn@image.dk
  Subject: RE: PG6.5 + JDBC + Linux + Kaffe
  In-Reply-To: <002c01bebda2$6c704040$ca0ba8c0@bilbo>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox