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

ORDER BY variable undefined #4332

Closed
area opened this issue Mar 30, 2015 · 2 comments
Closed

ORDER BY variable undefined #4332

area opened this issue Mar 30, 2015 · 2 comments

Comments

@area
Copy link

area commented Mar 30, 2015

As with my other bug report, this query works correctly on both 2.1.5 and 2.2.0:

MATCH (p:Person) with p, rand() as rng return p, rng

but this one only works on 2.1.5:

MATCH (p:Person) with p, rand() as rng return p ORDER BY rng

and on 2.2.0 gives the error:

rng not defined (line 1, column 58 (offset: 57))
"MATCH (p:Person) with p, rand() as rng return p ORDER BY rng"
@cleishm
Copy link
Contributor

cleishm commented Mar 30, 2015

Thanks for the report! I've confirmed the issue and will pass it along to our team.

@area
Copy link
Author

area commented Mar 31, 2015

Further to this, the following command works:

MATCH (p:Person) with p, rand() as rng return p, rng order by rng

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

No branches or pull requests

2 participants