Joe Simunac
Member²
There seems to be a problem with beautifying the CASE statement in certain cases. Here is my example:
I think this should display as:
However, it currently displays all on one line. I've played with the beautifier options, but nothing works for CASE.
Even CASE in a SELECT statement is not totally correct. Here's how it currently looks:
I would like at least the option of keeping the when-then statements on one line. Is this on the list for a future version? Is it available now and I just can't find it?
Thanks for any advice.
-Joe
Code:
update tabname
set code1 = case code2 when '5' then '1' when '6' then '2' else '3' end;
Code:
update tabname
set code1 = case code2
when '5' then '1'
when '6' then '2'
else '3'
end;
Even CASE in a SELECT statement is not totally correct. Here's how it currently looks:
Code:
select code1,
case code2
when '5' then
'2'
when '6' then
'2'
else '3'
end
from tabname
Thanks for any advice.
-Joe