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

RE: [INTERFACES] Transaction support in 6.5.3/JDBC

From: Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>
To: "'Assaf Arkin'" <arkin(at)exoffice(dot)com>, Peter Mount <petermount(at)it(dot)maidstone(dot)gov(dot)uk>
Cc: pgsql-interfaces(at)hub(dot)org, "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: RE: [INTERFACES] Transaction support in 6.5.3/JDBC
Date: 1999-12-10 07:27:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-interfaces

-----Original Message-----
From: Assaf Arkin [mailto:arkin(at)exoffice(dot)com]
Sent: Thursday, December 09, 1999 6:43 PM
To: Peter Mount
Cc: pgsql-interfaces(at)hub(dot)org; 'pgsql-hackers(at)postgresql(dot)org'
Subject: Re: [INTERFACES] Transaction support in 6.5.3/JDBC


> 3. isCriticalError -- should tell me if a critical error occured in
> connection and the connection is no longer useable
> How do I detect no. 3? Is there are certain range of error codes,
> I just look at certain PSQLExceptions as being critial (e.g. all I/O
> related errors)?
> PM: Don't rely on the text returned from PSQLException to be in
> We are pretty unique in that the driver will return an error message
> the language defined by the locale of the client (also depends on if
> have translated the errors into that language). What I could to is add
> method to PSQLException that returns the original id of the Exception,
> and another to return the arguments supplied. That may make your code
> more portable.

I'm not looking into the messages, I know their language dependent. I
even added two or three new error messages, but only in English.

I'm looking for either specific error codes, range of error codes, or
some class extending PSQLException that will just indicate that this
connection is no longer useful. For example, if an I/O error occurs,
there's no ReadyForQuery reply, there's garbled response, etc.


PM: There are not error codes available. Also, there's nothing extending
PSQLException (yet), but there's no reason not to extend it.

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

pgsql-hackers by date

Next:From: Peter MountDate: 1999-12-10 07:34:27
Subject: RE: [INTERFACES] Transaction support in 6.5.3/JDBC
Previous:From: The Hermit HackerDate: 1999-12-10 07:08:50
Subject: Re: [HACKERS] 6.6 release

pgsql-interfaces by date

Next:From: Peter MountDate: 1999-12-10 07:38:53
Subject: RE: [INTERFACES] Large Object Exception/Serializing Java Objects
Previous:From: Peter MountDate: 1999-12-10 07:17:49
Subject: RE: [INTERFACES] Transaction support in 6.5.3/JDBC

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