Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

case when wrongly formatted if comment after first condition #100

Closed
PabloRMira opened this issue Dec 23, 2020 · 0 comments · Fixed by #106
Closed

case when wrongly formatted if comment after first condition #100

PabloRMira opened this issue Dec 23, 2020 · 0 comments · Fixed by #106
Assignees
Labels
bug Something isn't working

Comments

@PabloRMira
Copy link
Owner

PabloRMira commented Dec 23, 2020

something like

select asdf,
case when asdf = 1 and -- some comment
asdf != 2 then 1 else 0 end as some_field
from table1

would be formatted like

select asdf,
       case when asdf = 1 and -- some comment
            asdf != 2 then 1 else 0 end as some_field
from table1

and not better like

select asdf,
       case when asdf = 1 and -- some comment
                 asdf != 2 then 1 else 0 end as some_field
from table1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant