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

Fix for a certain failing relationship layout, fixes https://github.com/toluaina/pgsync/issues/397 #398

Merged
merged 4 commits into from
Dec 16, 2022

Conversation

MeRuslan
Copy link
Contributor

@MeRuslan MeRuslan commented Dec 12, 2022

Tests pass, for additional info, please refer to the issue #397

foreign_key_columns: list = self._get_column_foreign_keys(
child._subquery.columns,
foreign_keys,
table=table,
schema=node.schema,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. only thing I would suggest is to use child.schema here because we do allow cross schema queries. So the child could be in a different namespace.

Copy link
Owner

@toluaina toluaina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a tiny comment. nice detective work

@MeRuslan
Copy link
Contributor Author

thanks for a swift reply, done

Copy link
Owner

@toluaina toluaina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good and great detective work. thanks

@toluaina toluaina merged commit fea9a7e into toluaina:main Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants