Commit 23cc39da authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix getTIDList result order.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1797 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b7f51986
...@@ -451,7 +451,7 @@ class MySQLDatabaseManager(DatabaseManager): ...@@ -451,7 +451,7 @@ class MySQLDatabaseManager(DatabaseManager):
def getTIDList(self, offset, length, num_partitions, partition_list): def getTIDList(self, offset, length, num_partitions, partition_list):
q = self.query q = self.query
r = q("""SELECT tid FROM trans WHERE MOD(tid, %d) in (%s) 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, % (num_partitions,
','.join([str(p) for p in partition_list]), ','.join([str(p) for p in partition_list]),
offset, length)) offset, length))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment