server/sources/__init__.py
changeset 385 663f42a881ba
parent 382 03964dd370e7
child 386 7af259b73c5b
--- a/server/sources/__init__.py	Fri Jan 09 17:00:21 2009 +0100
+++ b/server/sources/__init__.py	Fri Jan 09 19:38:47 2009 +0100
@@ -161,7 +161,7 @@
             for etype in rschema.objects():
                 if self.support_entity(etype):
                     sql = 'DELETE FROM %s_relation WHERE eid_to IN (%s);' % (
-                        rschema.type, eid)
+                        rschema.type, myeids)
                     session.system_sql(sql)
                     break
         # sqlite doesn't support DELETE FROM xxx USING yyy