Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id ABB3D634F12 for ; Wed, 27 May 2009 20:56:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 20750-03 for ; Wed, 27 May 2009 20:56:17 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 7FE55634D61 for ; Wed, 27 May 2009 20:56:21 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 841F1A2ED; Wed, 27 May 2009 19:56:19 -0400 (EDT) Date: Wed, 27 May 2009 19:56:19 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Fujii Masao cc: pgsql-jdbc@postgresql.org Subject: Re: SQLState of BatchUpdateException In-Reply-To: <3f0b79eb0905252100hef29e77k8230f8fd49bec067@mail.gmail.com> Message-ID: References: <3f0b79eb0905252100hef29e77k8230f8fd49bec067@mail.gmail.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.008 tagged_above=0 required=5 tests=AWL=0.008 X-Spam-Level: X-Archive-Number: 200905/105 X-Sequence-Number: 19655 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