Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FORMATTING] Parse error at token: FROM at line 1 column 20 Unexpected RESERVED_CLAUSE token: limit #512

Closed
xuoutput opened this issue Nov 2, 2022 · 3 comments
Labels

Comments

@xuoutput
Copy link

xuoutput commented Nov 2, 2022

Input data

Which SQL and options did you provide as input?

select uuid, limit from snap_server where ("uuid" = "9655a4")

Expected Output

select
  uuid,
  limit
from
  snap_server
where
  ("uuid" = "9655a4")

image

Actual Output

image

Usage

  • How are you calling / using the library?
  • What SQL language(s) does this apply to?
  • Which SQL Formatter version are you using?

11.0.2

@xuoutput xuoutput added the bug label Nov 2, 2022
@xuoutput
Copy link
Author

xuoutput commented Nov 2, 2022

#302

@nene
Copy link
Collaborator

nene commented Nov 2, 2022

I wonder which SQL dialect are you using that allows this syntax? Even PostgreSQL doesn't seem to allow this, and Postgres is super-forgiving in regards to using reserved keywords as column names.

@nene nene closed this as not planned Won't fix, can't repro, duplicate, stale Nov 10, 2022
@xuoutput
Copy link
Author

I wonder which SQL dialect are you using that allows this syntax? Even PostgreSQL doesn't seem to allow this, and Postgres is super-forgiving in regards to using reserved keywords as column names.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants