Return-Path: Delivered-To: apmail-ibatis-dev-archive@www.apache.org Received: (qmail 11555 invoked from network); 17 Feb 2006 17:03:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Feb 2006 17:03:48 -0000 Received: (qmail 99262 invoked by uid 500); 17 Feb 2006 17:03:47 -0000 Delivered-To: apmail-ibatis-dev-archive@ibatis.apache.org Received: (qmail 99240 invoked by uid 500); 17 Feb 2006 17:03:47 -0000 Mailing-List: contact dev-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ibatis.apache.org Delivered-To: mailing list dev@ibatis.apache.org Received: (qmail 99229 invoked by uid 99); 17 Feb 2006 17:03:47 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2006 09:03:45 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id BC8F1DE for ; Fri, 17 Feb 2006 18:03:24 +0100 (CET) Message-ID: <1170144361.1140195804770.JavaMail.jira@ajax.apache.org> Date: Fri, 17 Feb 2006 18:03:24 +0100 (CET) From: "Arne Burmeister (JIRA)" To: dev@ibatis.apache.org Subject: [jira] Created: (IBATIS-261) CLONE -The method executor.executeBatch() always returns 0. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N CLONE -The method executor.executeBatch() always returns 0. ----------------------------------------------------------- Key: IBATIS-261 URL: http://issues.apache.org/jira/browse/IBATIS-261 Project: iBatis for Java Type: Bug Components: SQL Maps Versions: 2.1.0 Environment: SUN JVM 1.4.2 On Windows Reporter: Arne Burmeister I am using Sql Maps 2.1.5 with Spring 1.2.4. I have a method as following. I want to get the number of rows updated in the batch . But it always returns 0. public int insertBatchError(final List batchErrorList) { Integer count = (Integer) getSqlMapClientTemplate().execute(new SqlMapClientCallback() { public Object doInSqlMapClient(SqlMapExecutor executor) throws SQLException { executor.startBatch(); for (int i = 0; i < batchErrorList.size(); i++) { BatchErrorDTO batchErrorDto = (BatchErrorDTO) batchErrorList.get(i); executor.update("insertBatchError", batchErrorDto); } int count = executor.executeBatch(); return new Integer(count); } }); return count.intValue(); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira