-
Notifications
You must be signed in to change notification settings - Fork 394
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
postgresql: better handle DISTINCT clause #144
Labels
Comments
The latest version in master produces: SELECT
DISTINCT
ON (c1, c2) c1,
c2
FROM
t1; This isn't really better either :( |
With 9.0.0 there's another slight change. It now gets formatted as: SELECT DISTINCT
ON (c1, c2) c1,
c2
FROM
t1; Still not there though :( |
|
This would result in: SELECT DISTINCT ON
(c1, c2) c1,
c2
FROM
t1; which isn't better. What one really wants is: SELECT DISTINCT ON (c1, c2)
c1,
c2
FROM
t1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At present sql-formatter produces:
But we expect:
The text was updated successfully, but these errors were encountered: