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

Inline query only seems to operate on first result #4692

Closed
neRok00 opened this issue Jul 31, 2015 · 1 comment
Closed

Inline query only seems to operate on first result #4692

neRok00 opened this issue Jul 31, 2015 · 1 comment
Assignees
Labels

Comments

@neRok00
Copy link

neRok00 commented Jul 31, 2015

Whilst working on a query here: http://stackoverflow.com/a/31737571/3800244, I tried the following WHERE clause on the query.

WHERE (SELECT expand(in('Child')) from #11:3) CONTAINSALL (@rid in $current.in_Child)

This inline query only seemed to check the first result in the CONTAINSALL expression, and I was getting incorrect results. By adding a LET clause and changing the WHERE clause to the one following, all records from inline query were properly compared in the CONTAINSALL expression, and I got the expected results.

LET $parents = (SELECT expand(in('Child')) from #11:3)
WHERE $parents CONTAINSALL (@rid in $current.in_Child)
@luigidellaquila
Copy link
Member

This is fixed in v 3.0 with the new SQL executor

Closing, thanks

Luigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants