You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Clinton Begin <cl...@gmail.com> on 2005/11/02 15:21:47 UTC
Re: include and problem
Could be a bug...if you use inline SQL, does the selectKey execute after the
statement?
If so, we'll need a bug report in JIRA for this.
Cheers,
Clinton
On 10/31/05, Zsolt <zk...@intland.com> wrote:
>
> Hi,
>
> if I use the block below "<selectKey" statement is executed before INSERT.
>
> Any ideas? I use ibatis ibatis-2.1.5.582
>
> <insert id="createSccCommit" parameterClass="sccCommitDto">
> <include refid="createSccCommitStatement" />
>
> <selectKey resultClass="java.lang.Integer" keyProperty="id"
> >
> SELECT LAST_INSERT_ID()
> </selectKey>
> </insert>
>
> Zsolt
>
>
>
>