Open TheKidCoder opened 8 years ago
Based on the SQL you have, it looks like the problem is the where clause is being applied to the children as well as the root nodes when it should just be applied to the root nodes. Do you have a complete test case? I added a test to try to reproduce this (https://github.com/jackc/edge/blob/master/spec/forest_spec.rb#L168), but I couldn't get it to fail.
In 0.4.4:
will generate the following SQL:
In 0.5.0: The same ruby statement generates the following query:
Returning only a single record with the
descendants
&children
properties being empty arrays.