Skip to content

Formatting case statement is inaccurate #15

@bogdan

Description

@bogdan

When formatting CASE WHEN THEN structure THEN and WHEN from different conditions are put to the same line:

SELECT
    CASE
      WHEN a > 0
      THEN 'above' WHEN a < 0
      THEN 'below'

I think this is inaccurate and I would expect the following instead:

SELECT
    CASE
      WHEN a > 0 THEN
         'above' 
      WHEN a < 0 THEN 
         'below'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions