[undo] fix transactions table name in cleanup operation stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 31 Mar 2010 12:21:39 +0200
branchstable
changeset 5101 0d01acee1f0a
parent 5100 04c71ebf38a5
child 5102 04c84959cd85
[undo] fix transactions table name in cleanup operation
hooks/__init__.py
--- a/hooks/__init__.py	Wed Mar 31 11:52:15 2010 +0200
+++ b/hooks/__init__.py	Wed Mar 31 12:21:39 2010 +0200
@@ -24,7 +24,7 @@
             session = repo.internal_session()
             try:
                 session.system_sql(
-                    'DELETE FROM transaction WHERE tx_time < %(time)s',
+                    'DELETE FROM transactions WHERE tx_time < %(time)s',
                     {'time': mindate})
                 # cleanup deleted entities
                 session.system_sql(