mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ALF-11546 Tracking queries on alf_transaction table do not have an upper bound
- Part 2 - refactor API + collateral damage - Fix tracking tests to cope with the presence of background transactions - should fix Oracle build and other intermittent build failures git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32824 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -52,6 +52,12 @@
|
||||
<if test="fromIdInclusive != null">
|
||||
<![CDATA[and acs.id >= #{fromIdInclusive}]]>
|
||||
</if>
|
||||
<if test="toCommitTimeExclusive != null">
|
||||
<![CDATA[acs.commit_time_ms < #{toCommitTimeExclusive}]]>
|
||||
</if>
|
||||
<if test="toIdExclusive != null">
|
||||
<![CDATA[and acs.id < #{toIdExclusive}]]>
|
||||
</if>
|
||||
</where>
|
||||
order by acs.commit_time_ms ASC, acs.id ASC
|
||||
</select>
|
||||
@@ -106,6 +112,12 @@
|
||||
<if test="fromIdInclusive != null">
|
||||
<![CDATA[and txn.id >= #{fromIdInclusive}]]>
|
||||
</if>
|
||||
<if test="toCommitTimeExclusive != null">
|
||||
<![CDATA[txn.commit_time_ms < #{toCommitTimeExclusive}]]>
|
||||
</if>
|
||||
<if test="toIdExclusive != null">
|
||||
<![CDATA[and txn.id < #{toIdExclusive}]]>
|
||||
</if>
|
||||
</where>
|
||||
order by txn.commit_time_ms ASC, txn.id ASC
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user