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

Code generator doesn't generate meta data for composite foreign key referencing non-unique key in H2 #5972

Closed
lukaseder opened this issue Mar 16, 2017 · 2 comments

Comments

@lukaseder
Copy link
Member

lukaseder commented Mar 16, 2017

More investigation needed


See also:

@lukaseder
Copy link
Member Author

This happens e.g. with the following schema:

CREATE TABLE t_5972_referenced (
  a INT, 
  b INT, 
  CONSTRAINT pk_t5972_referenced PRIMARY KEY (a), 
  CONSTRAINT uk_t5972_referenced UNIQUE (a, b)
);

CREATE TABLE t_5972_referencing (
  a INT, 
  b INT, 
  CONSTRAINT fk_t5972_referenced FOREIGN KEY (a, b) REFERENCES t_5972_referenced (a, b)
);

@lukaseder
Copy link
Member Author

This seems to have been fixed in H2 in the meantime.

3.19 Other improvements automation moved this from To do to Done Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant