Ticket #2700: table_schema.diff
File table_schema.diff, 620 bytes (added by , 18 years ago) |
---|
-
introspection.py
35 35 cursor.execute(""" 36 36 SELECT column_name, referenced_table_name, referenced_column_name 37 37 FROM information_schema.key_column_usage 38 WHERE table_name = %s 38 WHERE table_name = %s AND table_schema = DATABASE() 39 39 AND referenced_table_name IS NOT NULL 40 40 AND referenced_column_name IS NOT NULL""", [table_name]) 41 41 constraints.extend(cursor.fetchall())