Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 79901 invoked from network); 23 Jan 2008 19:36:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2008 19:36:42 -0000 Received: (qmail 25910 invoked by uid 500); 23 Jan 2008 19:36:30 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 25787 invoked by uid 500); 23 Jan 2008 19:36:29 -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 25649 invoked by uid 99); 23 Jan 2008 19:36:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 11:36:29 -0800 X-ASF-Spam-Status: No, hits=3.8 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [12.160.87.73] (HELO mx1.nexweb.org) (12.160.87.73) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 19:36:13 +0000 Received: from msw1.nexweb.us ([164.226.177.54]) by mx1.nexweb.org (8.14.1/8.14.1) with ESMTP id m0NJV4FI023382 for ; Wed, 23 Jan 2008 14:31:05 -0500 Received: from ngate1.nexweb.us (unverified [164.226.177.14]) by msw1.nexweb.us (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Wed, 23 Jan 2008 14:35:35 -0500 Received: from agate1.nexweb.us ([164.226.177.15]) by ngate1.nexweb.us (Lotus Domino Release 7.0.2) with ESMTP id 2008012314353427-166439 ; Wed, 23 Jan 2008 14:35:34 -0500 To: user-java@ibatis.apache.org Subject: executeBatchDetailed returning update count 0 MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.3 September 14, 2004 Message-ID: From: Jasmin_Mehta@nexweb.org Date: Wed, 23 Jan 2008 14:36:43 -0500 X-MIMETrack: Serialize by Router on AGATE1/HQ/NEXNET(Release 7.0.2|September 26, 2006) at 01/23/2008 02:35:34 PM, Serialize complete at 01/23/2008 02:35:34 PM, Itemize by SMTP Server on NGATE1/HQ/NEXNET(Release 7.0.2|September 26, 2006) at 01/23/2008 02:35:34 PM, Serialize by Router on NGATE1/HQ/NEXNET(Release 7.0.2|September 26, 2006) at 01/23/2008 02:35:35 PM, Serialize complete at 01/23/2008 02:35:35 PM Content-Type: multipart/alternative; boundary="=_alternative 006B9FE4852573D9_=" X-Virus-Checked: Checked by ClamAV on apache.org This is a multipart message in MIME format. --=_alternative 006B9FE4852573D9_= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am using Oracle 9i database and iBATIS 2.3.0. Here is my code sqlMapper.startTransaction(); parameterMap.put("sequenceList", sequences); parameterMap.put("status", newStatus); sqlMapper.startBatch (); sqlMapper.update("updateStatus", parameterMap); List batchResultList = sqlMapper.executeBatchDetailed(); for(int i=0; iI am using Oracle 9i database a= nd iBATIS=0D=0A2.3.0. =0D=0A
=0D=0A
Here is my code=0D=0A
=0D=0A
           =0D=0A sqlMapper.star= tTransaction();=0D=0A
  &n= bsp;        =0D=0A parameterMap.put("sequenceL= ist", sequences);=0D=0A
&n= bsp;          =0D=0A parameterMap.put("st= atus", newStatus);=0D=0A
&= nbsp;          =0D=0A sqlMapper.startBatch ();= =0D=0A
      &nb= sp;    =0D=0A sqlMapper.update("updateStatus", para= meterMap);=0D=0A
=0D=0A
&nbs= p;          =0D=0A List batchResultList =3D sq= lMapper.executeBatchDetailed();=0D=0A
           =0D=0A for(int i=3D0; i= <batchResultList.size();i++)=0D=0A
           =0D=0A {=0D=0A          &nbs= p;=0D=0A    logger.debug("UpdatedStatus : " + i + "= "=0D=0A+ batchResultList.get(i));    // this gives me 0 coun= t even though=0D=0A2 records get updated=0D=0A
           =0D=0A }  = ; =0D=0A
      &= nbsp;    =0D=0A sqlMapper.commitTransaction();=0D=0A=0D=0A
=0D=0A
According to this u= rl:=0D=0A
http://issues.apache.= org/jira/browse/IBATIS-159=0D=0A
=0D=0A
this problem has been fix since iBATIS=0D=0A2.2.0. But its still= not returning updated records counts.

************************************= ******************************************
ATTENTION ATTENTION ATTENTION ATTENTION ATTENTION
Our doma= in name is changing.=A0 Please take note of the sender's
e-Mail address= and make changes to your personal address list,
if needed.=A0 Both dom= ains will continue to work, only for a limited
time.
*************= *****************************************************************
This = email and any files transmitted with it are intended solely for
the us= e of the individual or agency to whom they are addressed.
If you have = received this email in error please notify the Navy
Exchange Service C= ommand e-mail administrator. This footnote
also confirms that this ema= il message has been scanned for the
presence of computer viruses.

Th= ank You!=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0
********************= **********************************************************

=0D=0A --=_alternative 006B9FE4852573D9_=--