8000 Parsing error on tsql when chinese without quotation mark · Issue #6710 · sqlfluff/sqlfluff · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
Parsing error on tsql when chinese without quotation mark #6710
Closed
@Dyaln2012516

Description

@Dyaln2012516

Search before asking

  • I searched the issues and found no similar issues.

What Happened

when parsing sql:"select top 10 a.* from (select datediff(day, '2024-03-01', '2024-04-01') as 日期差多少天) a;"
raise assertionError: “Root variant not successfully parsed.”

Expected Behaviour

plain sql is right, should be no error

Observed Behaviour

assertionError: “Root variant not successfully parsed.” raised

How to reproduce

sql is: select top 10 a.* from (select datediff(day, '2024-03-01', '2024-04-01') as 日期差多少天) a;

Dialect

tsql

Version

python 3.10.14
sqlfluff 3.0.7

Configuration

default

Are you willing to work on and submit a PR to address the issue?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingt-sqlIssues related to the T-SQL/TSQL/Transact SQL dialect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0