Parentheses lost aligment in case/when clauses
EsioNunes
Posts: 2 New member
in SQL Prompt
Hi.
I'm trying to format a code as the sample bellow:
When SQL Prompts reformats my code, this happens:
Any idea?
Best regards,
Ésio
I'm trying to format a code as the sample bellow:
select case 1 when 1 then 1 when 2 then (2) when 3 then 3 when 4 then 4 when 5 then 5 when 6 then 6 end;So have a complex statement that requires parenthesis to be coded.
When SQL Prompts reformats my code, this happens:
select case 1 when 1 then 1 when 2 then (2) when 3 then 3 when 4 then 4 when 5 then 5 when 6 then 6 end;
Any idea?
Best regards,
Ésio
Tagged:
Answers
what is the style you're using when formatting?
CTO @ Engage IT Services s.r.l.
Database Administrator and Team Leader
Microsoft MVP - Data Platform
Staff member of getlatestversion.it community
personal website | blog
Thank you for reporting this issue.
I have logged a ticket for it (ref SP-6749).
Regards,
Fabiola