Commits

Jack Diederich committed 381e743

fill_constraint_cache doesn't need to do the 2nd query if the first one returned no rows

  • Participants
  • Parent commits f54e891

Comments (0)

Files changed (1)

File south/db/mysql.py

                 kc.table_catalog IS NULL
         """
         rows = self.execute(name_query, [db_name])
+        if not rows:
+            return
         cnames = {}
         for constraint, column, table in rows:
             key = (table, constraint)