server/checkintegrity.py
changeset 8695 358d8bed9626
parent 8694 d901c36bcfce
child 8696 0bb18407c053
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   283                                 table, column, column, eid)
   283                                 table, column, column, eid)
   284                             session.system_sql(sql)
   284                             session.system_sql(sql)
   285             continue
   285             continue
   286         try:
   286         try:
   287             cursor = session.system_sql('SELECT eid_from FROM %s_relation;' % rschema)
   287             cursor = session.system_sql('SELECT eid_from FROM %s_relation;' % rschema)
   288         except Exception, ex:
   288         except Exception as ex:
   289             # usually because table doesn't exist
   289             # usually because table doesn't exist
   290             print 'ERROR', ex
   290             print 'ERROR', ex
   291             continue
   291             continue
   292         for row in cursor.fetchall():
   292         for row in cursor.fetchall():
   293             eid = row[0]
   293             eid = row[0]