Closed federico-hero closed 10 months ago
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.
Thanks for the report. Is this MySQL?
This is Postgres (PL/pgSQL).
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.