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

Fix return * with order by leaking internal variable names #8389

Merged
merged 2 commits into from Nov 21, 2016

Conversation

henriknyman
Copy link
Contributor

@henriknyman henriknyman commented Nov 17, 2016

changelog: RETURN * with ORDER BY should not leak internal variable names in the final result due to AST rewriting.

RETURN * with ORDER BY should not leak internal variable names in the final
result due to AST rewriting.
NormalizeReturnClauses adds a field about which columns are for internal use only,
but these were not removed in later rewrites. This made it difficult to write tests,
since parsing a query would never produce any values for the internal only RETURN
clause field.

This change restores the AST after rewriting, so tests are easy to write.
@systay systay merged commit 94a9295 into neo4j:2.3 Nov 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants