RE: [INTERFACES] Transaction support in 6.5.3/JDBC

Поиск
Список
Период
Сортировка
От Peter Mount
Тема RE: [INTERFACES] Transaction support in 6.5.3/JDBC
Дата
Msg-id 1B3D5E532D18D311861A00600865478C70BF63@exchange1.nt.maidstone.gov.uk
обсуждение исходный текст
Список pgsql-interfaces

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

[snip]

> 3. isCriticalError -- should tell me if a critical error occured in
the
> connection and the connection is no longer useable
> 
> How do I detect no. 3? Is there are certain range of error codes,
should
> 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
English.
> We are pretty unique in that the driver will return an error message
in
> the language defined by the locale of the client (also depends on if
we
> have translated the errors into that language). What I could to is add
a
> 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.

arkin

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-interfaces по дате отправления:

Предыдущее
От: Peter Mount
Дата:
Сообщение: RE: [INTERFACES] Transaction support in 6.5.3/JDBC
Следующее
От: Peter Mount
Дата:
Сообщение: RE: [INTERFACES] Large Object Exception/Serializing Java Objects