A case would be something like a stored proc that does a bunch of stuff, then returns a bunch of stuff... where some of that stuff includes updates. If you call that with the .selectList() method, then you'll want to call commit(true).
It's rare, but happens. Clinton On Sun, Aug 23, 2009 at 3:20 PM, Rick <ric...@gmail.com> wrote: > pg 53 Tansaction Control Methods > > "By default iBATIS does not actually commit unless it detects that the > database has been changed by a call to insert, update or delete. If > you’ve somehow made changes without calling these methods, then you > can pass true into the commit and rollback methods to guarantee that > it will be committed" > > What would be an example of changes done 'without calling these > methods' where you might want to force a commit with true? Are you > referring to an external manipulation of the row in question from > outside the app (ie manual update.) > > I assume it won't hurt anything to always be safe and call > commit(true) on the inserts,updates, deletes ? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org > For additional commands, e-mail: user-java-h...@ibatis.apache.org > >