Skip to content

Fix reordering of statements inside FROM statement #114

@mvgijssel

Description

@mvgijssel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions