pgFormatter icon indicating copy to clipboard operation
pgFormatter copied to clipboard

Wrong indent for WHERE after LEFT JOIN (again)

Open codehz opened this issue 2 years ago • 0 comments

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

codehz avatar Apr 12 '23 02:04 codehz