Something is wrong with this query around the last where condition for this foreign key (other test ones from the MySQL manual still work):
select rc.constraint_name, rc.referenced_table_name, group_concat(distinct concat('`',kc.column_name,'`')), rc.update_rule, rc.delete_rule, rc.match_option, group_concat(distinct concat('`',kt.column_name,'`')) from information_schema.referential_constraints rc join information_schema.key_column_usage kt on (rc.constraint_schema = kt.constraint_schema and rc.constraint_name = kt.constraint_name) join information_schema.key_column_usage kc on (rc.constraint_schema = kc.constraint_schema and rc.referenced_table_name = kc.table_name and rc.unique_constraint_name = kc.constraint_name) where rc.constraint_schema='SCHEMA' and rc.table_name='TABLE' group by rc.constraint_name
Something is wrong with this query around the last where condition for this foreign key (other test ones from the MySQL manual still work):
select rc.constraint_name, rc.referenced_ table_name, group_concat( distinct concat( '`',kc. column_ name,'` ')), rc.update_rule, rc.delete_rule, rc.match_option, group_concat( distinct concat( '`',kt. column_ name,'` ')) from information_ schema. referential_ constraints rc join information_ schema. key_column_ usage kt on (rc.constraint_ schema = kt.constraint_ schema and rc.constraint_name = kt.constraint_name) join information_ schema. key_column_ usage kc on (rc.constraint_ schema = kc.constraint_ schema and rc.referenced_ table_name = kc.table_name and rc.unique_ constraint_ name = kc.constraint_name) where rc.constraint_ schema= 'SCHEMA' and rc.table_ name='TABLE' group by rc.constraint_name
So headaches ahoy!