When a foreign key references a key from another schema, pkTableInformation is always null in InformationExtractorJdbcDatabaseMetaDataImpl#getForeignKeys. The cause is
final QualifiedTableName incomingPkTableName = extractKeyTableName( resultSet, "PK" );
returning a DatabaseIdentifier object, but
identifierHelper().toIdentifier( resultSet.getString( "TABLE_NAME" ) ) )
return an Identifier object, then comparation failed in InformationExtractorJdbcDatabaseMetaDataImpl#processGetTableResults
if ( tableName.equals( identifierHelper().toIdentifier( resultSet.getString( "TABLE_NAME" ) ) ) ) {
|