SQLState of BatchUpdateException

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: SQLState of BatchUpdateException
Date: 2009-05-26 04:00:14
Message-ID: 3f0b79eb0905252100hef29e77k8230f8fd49bec067@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
add_sqlstate.patch application/octet-stream 1.3 KB

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bojan Skaljac 2009-05-26 09:34:44 Serbian translation for pgsql-jdbc
Previous Message Ioana Danes 2009-05-25 15:48:06 Re: jdbc rounding value for numeric fields