Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple column FKs #207

Open
nguyenk opened this issue Jul 10, 2020 · 2 comments
Open

Multiple column FKs #207

nguyenk opened this issue Jul 10, 2020 · 2 comments
Assignees
Labels

Comments

@nguyenk
Copy link
Member

nguyenk commented Jul 10, 2020

Let's say I have a Table A with composit PK. I Have another Table B that need to point on Table A using 2 local columns.

Basic SQL would be :

ALTER TABLE B ADD CONSTRAINT B_TO_A FOREIGN KEY ( FK_COL_1 , FK_COL_2 ) REFERENCES B ( PK_COL_1 , PK_COL_2 )

I'm getting error :

TDBMException : PropertyDescriptor for B.FK_COL_1 not found in A
@Zheness
Copy link
Contributor

Zheness commented Sep 11, 2020

Hello,

Same problem here.

Any update on this issue ?

Thanks :)

@moufmouf
Copy link
Member

This should be fixed in 5.1.12.
Awaiting the port to the master branch to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants