brown paperbag fix oldstable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Thu, 09 Dec 2010 15:23:10 +0100
brancholdstable
changeset 6735 7d37ba09f4e3
parent 6734 ec9a5efdc451
child 6738 5fc4b6b8e2af
brown paperbag fix
hooks/syncschema.py
--- a/hooks/syncschema.py	Thu Dec 09 14:55:51 2010 +0100
+++ b/hooks/syncschema.py	Thu Dec 09 15:23:10 2010 +0100
@@ -288,9 +288,9 @@
         sqlexec(sql)
         self.info('renamed table %s to %s', oldname, newname)
         sqlexec('UPDATE entities SET type=%(newname)s WHERE type=%(oldname)s',
-                {'newname': newname, 'oldname': oldname))
+                {'newname': newname, 'oldname': oldname})
         sqlexec('UPDATE deleted_entities SET type=%(newname)s WHERE type=%(oldname)s',
-                {'newname': newname, 'oldname': oldname))
+                {'newname': newname, 'oldname': oldname})
         # XXX transaction records
 
     def precommit_event(self):