Detects foreign keys case insensitively