SQLState of BatchUpdateException - Mailing list pgsql-jdbc

From Fujii Masao
Subject SQLState of BatchUpdateException
Date
Msg-id 3f0b79eb0905252100hef29e77k8230f8fd49bec067@mail.gmail.com
Whole thread Raw
Responses Re: SQLState of BatchUpdateException  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Ioana Danes
Date:
Subject: Re: jdbc rounding value for numeric fields
Next
From: The Jasper
Date:
Subject: Re: Java persistence with enum types