Commit d5dc467f authored by Vincent Pelletier's avatar Vincent Pelletier

Fix index usage in MySQL.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2471 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a42337fa
......@@ -594,8 +594,8 @@ class MySQLDatabaseManager(DatabaseManager):
u64 = util.u64
self.begin()
try:
self.query('DELETE FROM obj WHERE partition=%(partition)d AND '
'oid > %(oid)d OR (oid = %(oid)d AND serial > %(serial)d)' % {
self.query('DELETE FROM obj WHERE partition=%(partition)d AND ('
'oid > %(oid)d OR (oid = %(oid)d AND serial > %(serial)d))' % {
'partition': partition,
'oid': u64(oid),
'serial': u64(serial),
......
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