Inherited foreign keys which reference a non primary key column incorrectly reference the primary key column

Description

If a table inherits foreign keys which reference a non primary key column then the generated foreign incorrectly references the primary key column.

This is because the referenced columns from the included table are not passed to the call to create the foreign key in the DenormailzedTable class.

Environment

None

Activity

Show:
Chris Manning
January 10, 2013, 1:08 PM

I pushed patch (I apologise for not calling the branch by the JIRA name)

Brett Meyer
January 15, 2013, 2:16 AM

, thanks much for the pull request. Do you have a test case we could use?

Brett Meyer
August 21, 2013, 7:27 PM

, never mind – the test case was simple and I just added it. Thanks again for the fix!

Assignee

Brett Meyer

Reporter

Chris Manning

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