Skip to content

recognize "WITH" keyword as table alias #37

@lucaslynn

Description

@lucaslynn

Parse SQL :
SELECT * FROM BSPRODUCT WITH ( NOLOCK )

Then format, you got:
SELECT * FROM BSPRODUCT WITH WITH ( NOLOCK )

sqlparser recognized "WITH" as both table hints and table alias, so you will get double "WITH".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions