[DBAL-492] Fix bug in foreign key comparision when inside a subschema.