Skip to content

Square bracket [] TSQL-quotes do not work #320

@krixgris

Description

@krixgris

I had this in #319 but it is so unrelated to it that I put it in a separate issue instead and cleaned up #319

Quoting identifiers with [ ] is very commonplace in TSQL and it currently breaks parsing.
Sorry for making this issue a bit of a mess, as it initially came from the other one i created.

select
    aäää = 1
    ,båå = 2
    ,cöö
    ,dÄÄ
    ,eÅÅ
    ,fÖÖ
    ,[tsql quoted expression] = 'quoted names in square brackets break'
from
    [test] t 
    inner join my_åäö_table t2 on
        t.id = t2.id

Image

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