The program window is not parsing correctly when an IF statement includes a CASE statement. The code intermittently fails with "Unable to complete operation due to errors in source code", and the Code Contents pane does not display anything. In the sample code below, everything works fine if the CASE statement lines are commented out. After compiling, uncomment them and recompile to generate the error.
Version 7.1.5.1398
Windows XP Professional 5.1 Build 2600 (Service Pack 3)
Version 7.1.5.1398
Windows XP Professional 5.1 Build 2600 (Service Pack 3)
Code:
create or replace procedure test_code_pane is
begin
if true
and 'a' = case 'b'
when 'a' then 'a'
when 'b' then 'b'
end
then
dbms_output.put_line('true');
else
dbms_output.put_line('false');
end if;
end test_code_pane;