From 35e8c5ef9d140d47e8cee8f82f5a18e8970b95a8 Mon Sep 17 00:00:00 2001 From: Jan Vonka Date: Wed, 1 Sep 2010 11:25:42 +0000 Subject: [PATCH] ALF-4280 - Node DAO: index recovery/tracking (select_Txns / select_TxnsUnused) - add missing order by(s) to "select_Txns" and "select_TxnsUnused" - initially affected Oracle build git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22117 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../node-common-SqlMap.xml | 10 +++++++--- .../alfresco/repo/domain/node/ibatis/NodeDAOImpl.java | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml index a9e025904c..a8970e4d87 100644 --- a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml +++ b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml @@ -835,9 +835,10 @@ txn.change_txn_id as change_txn_id, txn.commit_time_ms as commit_time_ms - - order by txn.commit_time ASC - order by txn.commit_time DESC + + + order by txn.commit_time_ms ASC, txn.id ASC + order by txn.commit_time_ms DESC, txn.id DESC @@ -888,6 +889,7 @@ from alf_transaction txn +