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

Bad indentation for BoolExpr in ResTarget #3

Closed
lelit opened this issue Oct 12, 2017 · 0 comments
Closed

Bad indentation for BoolExpr in ResTarget #3

lelit opened this issue Oct 12, 2017 · 0 comments

Comments

@lelit
Copy link
Owner

lelit commented Oct 12, 2017

The following statement

select a.one,
       not a.bool_flag and a.something is null as foobar,
       a.value1 + b.value2 * b.value3 as ciao
  from sometable as a

gets reformatted as

SELECT a.one
     , (NOT a.bool_flag)
   AND a.something IS NULL AS foobar
     , a.value1 + (b.value2 * b.value3) AS ciao
FROM sometable AS a

instead it should be

SELECT a.one
     , (NOT a.bool_flag)
       AND a.something IS NULL AS foobar
     , a.value1 + (b.value2 * b.value3) AS ciao
FROM sometable AS a
lelit added a commit that referenced this issue Oct 12, 2017
@lelit lelit closed this as completed Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant