Open klingtnet opened 3 years ago
1.15.0
Linux m604 5.9.6-arch1-1 #1 SMP PREEMPT Thu, 05 Nov 2020 21:00:46 +0000 x86_64 GNU/Linux
The following example
SELECT count(CASE WHEN foo IN ('bar', 'baz') THEN 1) FROM foobar; SELECT 1;
gets formatted to
SELECT count( CASE WHEN foo IN ('bar', 'baz') THEN 1) FROM foobar; SELECT 1;
Where a redundant level of indentation is kept after the first FROM keyword. An proper formatting result would look similar to:
FROM
SELECT count( CASE WHEN foo IN ('bar', 'baz') THEN 1 ) FROM foobar; SELECT 1;
Edit simplified the example queries.
1.15.0
Linux m604 5.9.6-arch1-1 #1 SMP PREEMPT Thu, 05 Nov 2020 21:00:46 +0000 x86_64 GNU/Linux
The following example
gets formatted to
Where a redundant level of indentation is kept after the first
FROM
keyword. An proper formatting result would look similar to:Edit simplified the example queries.