Skip to content

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

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

Closed
wants to merge 1 commit into from

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

Will do another PR with a better branching on my fork

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.

1 participant