pgFormatter icon indicating copy to clipboard operation
pgFormatter copied to clipboard

Bad indentation with nested array syntax

Open marco44 opened this issue 4 years ago • 0 comments

No idea why the indentation is off by 1 at the end of this query

pg_format << EOF
select t1.a, 
       (array (select (b, array (select b from t2)) from t2)) from t1
EOF
SELECT
    t1.a,
    (ARRAY (
            SELECT
                (b,
                    ARRAY (
                        SELECT
                            b
                        FROM
                            t2))
                FROM
                    t2))
    FROM
        t1

marco44 avatar Dec 28 '21 09:12 marco44