Skip to content

Conversation

nwalters512
Copy link
Contributor

Like #421, but for Postgres.

IMO things look better if OF (if present) is placed on the same like as FOR ... and any specific columns are placed on a separate line. I make this change for PL/SQL as well, but I'd be happy to revert that if you feel differently.

'LIMIT',
'OFFSET',
'FETCH {FIRST | NEXT}',
'FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was taken straight from the Postgres docs: https://www.postgresql.org/docs/current/sql-select.html

@nene
Copy link
Collaborator

nene commented Mar 9, 2023

Thanks for the PR. Makes sense to me.

@nene nene merged commit 2507528 into sql-formatter-org:master Mar 9, 2023
@nene
Copy link
Collaborator

nene commented Mar 9, 2023

Released in 12.1.3

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

Successfully merging this pull request may close these issues.

2 participants