pgFormatter
pgFormatter copied to clipboard
Wrong indent for WHERE after LEFT JOIN (again)
version: 5.5 input:
do $$
begin
select 1 from a left join x on a.id = x.id where a.selected;
end
$$;
output:
DO $$
BEGIN
SELECT
1
FROM
a
LEFT JOIN x ON a.id = x.id
WHERE
a.selected;
END
$$;
like https://github.com/darold/pgFormatter/issues/170 but not same context