Skip to content

Fix "ambiguous column" issue when using ancestor/descendant condition #315

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

Merged
merged 1 commit into from
Sep 30, 2018

Conversation

kelyak
Copy link

@kelyak kelyak commented Sep 25, 2018

If joins are made between the table using the NodeTrait and itself, using conditions whereDescendantOf or whereAncestorOf would throw an Integrity Constraint Violation (ambiguous column name) error on columns _lft and/or _rgt.

…ndantOf with additional join(s)

If joins are made between the table using the NodeTrait and the table itself, using conditions whereDescendantOf or whereAncestorOf would throw an Integrity Constraint Violation error on columns _lft and/or _rgt.
@kelyak
Copy link
Author

kelyak commented Sep 25, 2018

Same pull request as #314 but with better branching on my side. I hope it won't bother you.

@lazychaser lazychaser merged commit 91601c3 into lazychaser:v4 Sep 30, 2018
@antonkomarev
Copy link
Contributor

antonkomarev commented Dec 27, 2018

This code possibly has an issue #334

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.

3 participants