Re: Question on Transactions and Batches

2006-06-16 Thread Jeff Butler
Original Message-From: Jeff Butler [mailto: [EMAIL PROTECTED]]Sent: Friday, June 16, 2006 10:31 AMTo: dev@ibatis.apache.org Subject: Question on Transactions and Batches I've noticed something when doing some work on an improved executeBatch method.  If you don't include your batch in an exp

RE: Question on Transactions and Batches

2006-06-16 Thread Huang, Richard X
@ibatis.apache.orgSubject: Question on Transactions and Batches I've noticed something when doing some work on an improved executeBatch method.  If you don't include your batch in an explicit transaction, nothing will be executed.  For example, if I do this:   sqlMap.startBatch(); sql

Question on Transactions and Batches

2006-06-16 Thread Jeff Butler
I've noticed something when doing some work on an improved executeBatch method.  If you don't include your batch in an explicit transaction, nothing will be executed.  For example, if I do this:   sqlMap.startBatch(); sqlMap.insert("someStatement", someObject); sqlMap.insert("someStatement", anoth