--- a/server/checkintegrity.py Tue Sep 22 18:59:00 2009 +0200
+++ b/server/checkintegrity.py Wed Sep 23 08:16:06 2009 +0200
@@ -211,8 +211,8 @@
if not has_eid(cursor, eid, eids):
bad_related_msg(rschema, 'object', eid, fix)
if fix:
- sql = 'UPDATE %s SET %s = NULL WHERE %seid=%s;' % (
- table, column, SQL_PREFIX, eid)
+ sql = 'UPDATE %s SET %s=NULL WHERE %s=%s;' % (
+ table, column, column, eid)
session.system_sql(sql)
continue
cursor = session.system_sql('SELECT eid_from FROM %s_relation;' % rschema)