Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign key

Description

When a foreign key references a key from another schema, pkTableInformation is always null in InformationExtractorJdbcDatabaseMetaDataImpl#getForeignKeys.

The cause is

returning a DatabaseIdentifier object, but

return an Identifier object, then comparation failed in InformationExtractorJdbcDatabaseMetaDataImpl#processGetTableResults

Environment

JDK 1.8

Activity

Show:
Andrea Boriero
June 8, 2016, 11:03 AM

5.2 it's a tag, a branch will be created as soon as changes that should only belong to 6.0 will be introduced.

About the snapshots creation, every time a change is pushed to master a snapshot is created.
I checked and you should have the latest version,

Matthias Kurz
June 8, 2016, 11:07 AM

Thanks!

Matthias Kurz
June 8, 2016, 2:43 PM

I just tested the 5.2.1-SNAPSHOT and can confirm this bug is fixed. Thank you!

Andrea Boriero
June 8, 2016, 6:37 PM

thanks for testing

Paweł Jaguś
August 19, 2016, 7:19 PM

The bug is still there if auto quoting key words is set to true. I use PostgreSQL database.

Test case:

pom.xml

application.properties

Entity

App entry point

The application crashes upon start with

Assignee

Andrea Boriero

Reporter

杨林

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure