mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
MOB-448: Better patch for JDBC3 generated keys
- Fixes bug with different column types not matching generated key target type - Submitted to https://issues.apache.org/jira/browse/IBATIS-142 - MySQL and SQLServer use generated keys - Other tidy ups git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13732 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
values (#activityType#, #activitySummary#, #activitySummaryFormat#, #feedUserId#, #postUserId#, #postDate#, #postId#, #siteNetwork#, #appTool#, #feedDate#)
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="post">
|
||||
KEY_COLUMN:id
|
||||
KEY_COLUMN:GENERATED_KEY
|
||||
</selectKey>
|
||||
|
||||
</insert>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
values (#feedUserId#, #siteNetwork#, #appTool#, #lastModified#)
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="post">
|
||||
KEY_COLUMN:id
|
||||
KEY_COLUMN:GENERATED_KEY
|
||||
</selectKey>
|
||||
|
||||
</insert>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
values (#status#, #activityData#, #userId#, #postDate#, #activityType#, #siteNetwork#, #appTool#, #jobTaskNode#, #lastModified#)
|
||||
|
||||
<selectKey resultClass="long" keyProperty="id" type="post">
|
||||
KEY_COLUMN:sequence_id
|
||||
KEY_COLUMN:GENERATED_KEY
|
||||
</selectKey>
|
||||
|
||||
</insert>
|
||||
|
Reference in New Issue
Block a user