Received: from www200.image.dk (www200.image.dk [212.54.64.146]) by hub.org (8.9.3/8.9.3) with ESMTP id OAA49556 for ; Wed, 23 Jun 1999 14:18:12 -0400 (EDT) (envelope-from jonfn@image.dk) Received: from bilbo (55.ppp3-4.image.dk [212.54.75.247]) by www200.image.dk (8.9.0/8.8.5) with SMTP id UAA06838 for ; Wed, 23 Jun 1999 20:18:11 +0200 Message-ID: <010801bebda4$12029d40$ca0ba8c0@bilbo> From: "Jon Nielsen" To: Subject: RE: PG6.5 + JDBC + Linux + Kaffe Date: Wed, 23 Jun 1999 20:13:16 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0105_01BEBDB4.D41A2A00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 This is a multi-part message in MIME format. ------=_NextPart_000_0105_01BEBDB4.D41A2A00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Daniele, Your example does not work for two reasons: 1)=20 Your call to DriverManager is incorrect.=20 The correct form is either Connection db =3D = DriverManager.getConnection("jdbc:postgresql:DATABASE","USER","PASSWORD")= ; or=20 Connection db =3D = 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 ------=_NextPart_000_0105_01BEBDB4.D41A2A00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi Daniele,
 
Your example does not work for two = reasons:
 
1)
Your call to DriverManager is incorrect. =
The correct form is either
  Connection db =3D=20 DriverManager.getConnection("jdbc:postgresql:DATABASE","USER","PASSWORD")= ;
or
  Connection db =3D=20 DriverManager.getConnection("jdbc:postgresql://MACHINE/DATABASE","USER","= PASSWORD");
 
 
2)
There is a bug in the 'error.properties' file which causes the JDBC = driver=20 not to return the correct error messages.
 
You can fix this yourself, by changing {1} to {0}, and {2} to {1} = and so=20 on. Then you should get the correct error message.
 
 
Hope that helps you
 
Jon Nielsen
------=_NextPart_000_0105_01BEBDB4.D41A2A00--