Thread: SQLState of BatchUpdateException

SQLState of BatchUpdateException

From
Fujii Masao
Date:
Hi,

Unlike PSQLException, BatchUpdateException always doesn't haveSQLState.
This might cause unexpected behavior, e.g. fireConnectionError() would
misunderstand that the exception is fatal even if it's a mere transaction error.

Here is the patch to add SQLState into BatchUpdateException.

Thought?

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Attachment

Re: SQLState of BatchUpdateException

From
Kris Jurka
Date:

On Tue, 26 May 2009, Fujii Masao wrote:

> Unlike PSQLException, BatchUpdateException always doesn't haveSQLState.
> This might cause unexpected behavior, e.g. fireConnectionError() would
> misunderstand that the exception is fatal even if it's a mere
> transaction error.
>
> Here is the patch to add SQLState into BatchUpdateException.
>

Applied back to 8.0.  Thanks.

Kris Jurka