-
Notifications
You must be signed in to change notification settings - Fork 415
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] Column named text
is converted to upper case
#726
Comments
text
is converted to upper casetext
is converted to upper case
Thanks for reporting. This is essentially the same issue as #302. Though something else also goes wrong here. There's currently no good way to fix this fundamental problem in SQL Formatter. Basically the choices are:
Though the latter would only happen if you were to use But currently something goes wrong in here with the classification of the word However, as you're already using Prettier, I suggest you instead give a try to prettier-plugin-sql-cst, which does a much better job at formatting PostgreSQL and is actually using the Prettier layout algorithm, unlike |
I have the following config: "keywordCase": "upper",
"dataTypeCase": "lower",
"functionCase": "lower",
"identifierCase": "lower",
and yet, |
Thanks for reporting. Please open another issue if you care about this. I can confirm that there is a problem, but it's not directly related to this closed issue (it affects Though in general the SQL Formatter library is fundamentally not capable of properly distinguishing between keywords, data types, column names, etc. The best it can do is to make a guess. There's a much higher chance of getting this properly implemented in |
Input data
Which SQL and options did you provide as input?
Language:
PostgreSQL
Keyword case:
Upper
Expected Output
Actual Output
Usage
The text was updated successfully, but these errors were encountered: