ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: include and <selectKey /> problem
Date Wed, 02 Nov 2005 14:21:47 GMT
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 <zkoppanylist@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
>
>
>
>

Mime
View raw message