RE: [INTERFACES] RE: PG6.5 + JDBC + Linux + Kaffe

From: Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: RE: [INTERFACES] RE: PG6.5 + JDBC + Linux + Kaffe
Date: 1999-06-24 07:43:04
Message-ID: 1B3D5E532D18D311861A00600865478C9FDB@exchange1.nt.maidstone.gov.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

I committed the fix for error.properties into cvs a couple of nights
ago.
 
Peter
 

--
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.

-----Original Message-----
From: Jon Nielsen [mailto:jonfn(at)image(dot)dk]
Sent: Wednesday, June 23, 1999 7:13 PM
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: [INTERFACES] RE: PG6.5 + JDBC + Linux + Kaffe

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(at)image(dot)dk

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Ivar Helbekkmo 1999-06-24 08:08:03 Re: [INTERFACES] Performance
Previous Message Maarten Boekhold 1999-06-24 07:36:51 Re: [INTERFACES] Performance