hooks/syncschema.py
changeset 5174 78438ad513ca
parent 4951 7dc54e12c606
child 5423 e15abfdcce38
--- a/hooks/syncschema.py	Wed Apr 07 09:24:00 2010 +0200
+++ b/hooks/syncschema.py	Wed Apr 07 14:26:35 2010 +0200
@@ -1004,7 +1004,7 @@
             DropRelationTable(session, rschema.type)
         # if this is the last instance, drop associated relation type
         if lastrel and not self.eidto in pendings:
-            execute('DELETE CWRType X WHERE X eid %(x)s', {'x': self.eidto}, 'x')
+            execute('DELETE CWRType X WHERE X eid %(x)s', {'x': self.eidto})
         MemSchemaRDefDel(session, (subjschema, rschema, objschema))