Skip to content

Walk doesn't traverse with clause #216

Description

@yilinjuang

Since withClause has type WithClause and walk only handles Node type, the entire withClause is skipped.

https://github.com/launchql/pgsql-parser/blob/7e4343a796a48a61b3272654c3a05af3b3f9514a/packages/traverse/src/17/runtime-schema.ts#L8514-L8519

https://github.com/launchql/pgsql-parser/blob/7e4343a796a48a61b3272654c3a05af3b3f9514a/packages/traverse/src/traverse.ts#L72-L83

Same issue applies to union larg and rarg.

Expected behavior

Walk should traverse with clause and union.

Actual behavior

Walk skips with clause and union.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions