Consider them separate intentions. One is a descriptive XML document synax, the other is a descriptive Java syntax....even if they may not match.
Cheers,
Clinton
On 10/23/05, Zsolt <[EMAIL PROTECTED]> wrote:
Hi!
Today we found a strange problem: our <selectKey> stanza embedded in an
<insert> was simply ignored by iBATIS: the INSERT statement did run, but
after that nothing happened -> the SELECT LAST_INSERT_ID() did not appear in
the log and iBATIS didn't give any error msg, either.
Finally we found that by accident we used the
sqlMap.update() and not create() to invoke the SQL fragment, which was
actually an <insert>.
So it was our fault.
But is this the desired behaviour that .update() accepts also <insert>
fragments without any warning?
IMHO it might be a good idea to throw some kind a exception in this case.
Zsolt
