We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Incorrectly formats variable assignation operator := as : =.
:=
: =
To Reproduce
Run this correct SQL through sqlfmt:
select partman.create_parent( 'public.deliveries_finished', 'created_at', 'native', 'daily', p_premake := 20) ;
Expected behavior
select partman.create_parent( 'public.deliveries_finished', 'created_at', 'native', 'daily', p_premake := 20 ) ;
Actual behavior
Notice the separation between the colon and the equal sign:
select partman.create_parent( 'public.deliveries_finished', 'created_at', 'native', 'daily', p_premake: = 20 ) ;
Additional context
sqlfmt, version 0.20.0
This makes the SQL to fail.
The text was updated successfully, but these errors were encountered:
Thanks for the report. Is this MySQL?
Sorry, something went wrong.
This is Postgres (PL/pgSQL).
fix #502: change lexing priority of walrus operator
4956c49
fix #502: change lexing priority of walrus operator (#509)
dabb1ec
Successfully merging a pull request may close this issue.
Describe the bug
Incorrectly formats variable assignation operator
:=
as: =
.To Reproduce
Run this correct SQL through sqlfmt:
Expected behavior
Actual behavior
Notice the separation between the colon and the equal sign:
Additional context
sqlfmt, version 0.20.0
This makes the SQL to fail.
The text was updated successfully, but these errors were encountered: