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 reordering of statements inside FROM statement #114

Open
mvgijssel opened this issue Jul 30, 2019 · 0 comments
Open

Fix reordering of statements inside FROM statement #114

mvgijssel opened this issue Jul 30, 2019 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@mvgijssel
Copy link
Collaborator

The following spec fails

visit 'select', '1 FROM "b", (SELECT 1) "a", "c"', pg_node: 'PgQuery::RANGE_VAR'

with the following error from RSpec

      expected: "SELECT 1 FROM \"b\", (SELECT 1) \"a\", \"c\""
           got: "SELECT 1 FROM \"b\", \"c\" (SELECT 1) \"a\""

For some reason the subquery inside of the FROM moves to the back.

@mvgijssel mvgijssel added the bug Something isn't working label Jul 30, 2019
@mvgijssel mvgijssel added this to the 0.5.0 milestone Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant