[Neo-report] r1797 gregory - /trunk/neo/storage/database/mysqldb.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 19 09:46:23 CET 2010
Author: gregory
Date: Fri Feb 19 09:46:23 2010
New Revision: 1797
Log:
Fix getTIDList result order.
Modified:
trunk/neo/storage/database/mysqldb.py
Modified: trunk/neo/storage/database/mysqldb.py
==============================================================================
--- trunk/neo/storage/database/mysqldb.py [iso-8859-1] (original)
+++ trunk/neo/storage/database/mysqldb.py [iso-8859-1] Fri Feb 19 09:46:23 2010
@@ -451,7 +451,7 @@
def getTIDList(self, offset, length, num_partitions, partition_list):
q = self.query
r = q("""SELECT tid FROM trans WHERE MOD(tid, %d) in (%s)
- ORDER BY tid DESC LIMIT %d,%d""" \
+ ORDER BY tid ASC LIMIT %d,%d""" \
% (num_partitions,
','.join([str(p) for p in partition_list]),
offset, length))
More information about the Neo-report
mailing list