|
I think you need to specify the alias as
follows:
<selectKey keyProperty="tkreq" type="post" resultClass="java.lang.Long"> select @@IDENTITY AS tkreq </selectKey> and it is always a good idea to specify the type. (pre or post) I can't remember which is the default so I always specify the value so it is clear. This should work as I am using it with Sybase ASE 12.0 without any issues. From: Emiliano Armellin <[EMAIL PROTECTED]> [mailto:Emiliano Armellin <[EMAIL PROTECTED]>] Sent: Monday, May 28, 2007 2:39 AM To: [email protected] Subject: selectkey in sybase I'm trying the selectkey statement in sybase, using abator generated map but I've got this error: org.springframework.jdbc.UncategorizedSQLException:
SqlMapClient operation; uncategorized SQLException for SQL []; SQL state
[JZ0TE]; error code [0]; the generated insert: <insert
id="abatorgenerated_insert"
parameterClass="com.ateikon.internet.eprogen.domain.pgmr.Atk_request">it seems correct... so why thi error? I can't set selectkey result map... thanks --
|
- selectkey in sybase Emiliano Armellin
- Re: selectkey in sybase Richard Yee
- Re: selectkey in sybase Emiliano Armellin
- RE: selectkey in sybase Yee, Richard K CTR DMDC
- RE: selectkey in sybase Christopher . Mathrusse
- Re: selectkey in sybase Emiliano Armellin
- Re: selectkey in sybase Emiliano Armellin
