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

postgresql named arguments are incorrectly formatted #125

Closed
briandunn opened this issue Mar 5, 2021 · 2 comments
Closed

postgresql named arguments are incorrectly formatted #125

briandunn opened this issue Mar 5, 2021 · 2 comments
Labels
Milestone

Comments

@briandunn
Copy link

Named arguments generate invalid psql.

given:

select make_interval(secs := 100);
select make_interval(secs => 100);

actual:

SELECT
  make_interval(secs: = 100);
SELECT
  make_interval(secs = > 100);

expected:

SELECT
  make_interval(secs := 100);
SELECT
  make_interval(secs => 100);
@inferrinizzard
Copy link
Collaborator

@nene
Copy link
Collaborator

nene commented May 3, 2022

This fix is now also in master branch of sql-formatter.

@nene nene closed this as completed May 3, 2022
@nene nene added the v6-fixes label May 3, 2022
@nene nene added this to the Version 6 milestone May 3, 2022
@nene nene added bug and removed v6-fixes labels May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants