Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 90765 invoked from network); 16 Jan 2007 02:12:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 02:12:47 -0000 Received: (qmail 27047 invoked by uid 500); 16 Jan 2007 02:12:52 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 26789 invoked by uid 500); 16 Jan 2007 02:12:51 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 26778 invoked by uid 99); 16 Jan 2007 02:12:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 18:12:51 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jan 2007 18:12:41 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H6doD-0006gu-A6 for user-java@ibatis.apache.org; Mon, 15 Jan 2007 18:12:21 -0800 Message-ID: <8383318.post@talk.nabble.com> Date: Mon, 15 Jan 2007 18:12:21 -0800 (PST) From: navrsale To: user-java@ibatis.apache.org Subject: Re: getFailingSqlStatement() In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: navrsalemile@yahoo.ca References: <8289571.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org But if that is so, why do we have: int[] rowCounts = be.getBatchUpdateException().getUpdateCounts(); where be is BatchException My understanding is this will give all the "wrong" and "good" statements in a batch, will it not? (which means all the remaining statements in the batch will be attempted by the driver). Jeff Butler-2 wrote: > > Any failed statement ends the entire batch. If there is more than one > "sub > batch", everything is rolled back and nothing further is attempted. > > So there will only be one statement that kills the batch - the first one > that failed. > > Jeff Butler > > > > On 1/11/07, navrsale wrote: >> >> >> hi all, >> >> if a single batch has a failed insert statement my understanding is that >> remaining statements in the batch will be attempted and then >> BatchException >> will be thrown? If in these remaining statements another statement(s) >> fails, >> how can we get all sql statements that failed in the same batch? I guess >> getFailingSqlStatement() returns only the first sql statement that failed >> in >> a batch? >> >> Many thanks, >> -- >> View this message in context: >> http://www.nabble.com/getFailingSqlStatement%28%29-tf2962806.html#a8289571 >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/getFailingSqlStatement%28%29-tf2962806.html#a8383318 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.