-
Notifications
You must be signed in to change notification settings - Fork 45
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
Recursive query with 2 parents #21
Comments
@jphilip I don't see why not. Have you tried adding a second Examples of recursive CTEs can be found in the tests. django-cte/tests/test_recursive.py Lines 34 to 52 in ab0cf7e
|
@millerdev I did, but for some reason the parents did not get loaded into the object, so I ended up using a bare cursor with sql code similar to what I showed here, but with a materialized path field which in turn allowed me to easily recursively load the data into the object. |
@jphilip can you provide a test case that reproduces your issue? |
Feel free to re-open if this is still an issue. |
I was wondering if it is possible to have a recursive query with 2 parent fields with django-cte, i.e., something like this SQL:
Edit by @millerdev to fix code formatting.
The text was updated successfully, but these errors were encountered: